chore: regenerate umbrella crate, fix feature propagation
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
|
||||
//! # Meta Tx (Meta Transaction) Pezpallet
|
||||
//!
|
||||
//! This pezpallet enables the dispatch of transactions that are authorized by one party (the signer)
|
||||
//! and executed by an untrusted third party (the relayer), who covers the transaction fees.
|
||||
//! This pezpallet enables the dispatch of transactions that are authorized by one party (the
|
||||
//! signer) and executed by an untrusted third party (the relayer), who covers the transaction fees.
|
||||
//!
|
||||
//! ## Pezpallet API
|
||||
//!
|
||||
@@ -47,8 +47,8 @@
|
||||
//! and the signature of the payload, encompassing the call and the meta-transaction’s
|
||||
//! configurations, such as its mortality. The extensions follow the same [`TransactionExtension`]
|
||||
//! contract, and common types such as [`pezframe_system::CheckGenesis`],
|
||||
//! [`pezframe_system::CheckMortality`], [`pezframe_system::CheckNonce`], etc., are applicable in the
|
||||
//! context of meta transactions. Check the `mock` setup for the example.
|
||||
//! [`pezframe_system::CheckMortality`], [`pezframe_system::CheckNonce`], etc., are applicable in
|
||||
//! the context of meta transactions. Check the `mock` setup for the example.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
@@ -100,7 +100,8 @@ impl<Call, Extension> MetaTx<Call, Extension> {
|
||||
}
|
||||
|
||||
/// The [`MetaTx`] for the given config.
|
||||
pub type MetaTxFor<T> = MetaTx<<T as pezframe_system::Config>::RuntimeCall, <T as Config>::Extension>;
|
||||
pub type MetaTxFor<T> =
|
||||
MetaTx<<T as pezframe_system::Config>::RuntimeCall, <T as Config>::Extension>;
|
||||
|
||||
#[pezframe_support::pezpallet]
|
||||
pub mod pezpallet {
|
||||
@@ -121,7 +122,8 @@ pub mod pezpallet {
|
||||
type WeightInfo: WeightInfo;
|
||||
/// The overarching event type.
|
||||
#[allow(deprecated)]
|
||||
type RuntimeEvent: From<Event<Self>> + IsType<<Self as pezframe_system::Config>::RuntimeEvent>;
|
||||
type RuntimeEvent: From<Event<Self>>
|
||||
+ IsType<<Self as pezframe_system::Config>::RuntimeEvent>;
|
||||
/// Transaction extension/s for meta transactions.
|
||||
///
|
||||
/// The extensions that must be present in every meta transaction. This generally includes
|
||||
|
||||
@@ -105,7 +105,8 @@ impl pezframe_system::Config for Runtime {
|
||||
type AccountId = AccountId;
|
||||
type Lookup = IdentityLookup<Self::AccountId>;
|
||||
type Block = pezframe_system::mocking::MockBlock<Runtime>;
|
||||
type AccountData = pezpallet_balances::AccountData<<Self as pezpallet_balances::Config>::Balance>;
|
||||
type AccountData =
|
||||
pezpallet_balances::AccountData<<Self as pezpallet_balances::Config>::Balance>;
|
||||
}
|
||||
|
||||
#[derive_impl(pezpallet_balances::config_preludes::TestDefaultConfig)]
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
// limitations under the License.
|
||||
|
||||
use crate::*;
|
||||
use pezframe_support::traits::tokens::fungible::Inspect;
|
||||
use mock::*;
|
||||
use pezframe_support::traits::tokens::fungible::Inspect;
|
||||
use pezsp_io::hashing::blake2_256;
|
||||
use pezsp_keyring::Sr25519Keyring;
|
||||
use pezsp_runtime::{
|
||||
@@ -387,7 +387,9 @@ fn meta_tx_call_fails() {
|
||||
actual_weight: Some(meta_tx_weight),
|
||||
pays_fee: Pays::Yes,
|
||||
},
|
||||
error: pezsp_runtime::DispatchError::Token(pezsp_runtime::TokenError::FundsUnavailable),
|
||||
error: pezsp_runtime::DispatchError::Token(
|
||||
pezsp_runtime::TokenError::FundsUnavailable,
|
||||
),
|
||||
}),
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user