diff --git a/bridges/bin/runtime-common/src/extensions/check_obsolete_extension.rs b/bridges/bin/runtime-common/src/extensions/check_obsolete_extension.rs index 2ff62d108998..8071f6ebe471 100644 --- a/bridges/bin/runtime-common/src/extensions/check_obsolete_extension.rs +++ b/bridges/bin/runtime-common/src/extensions/check_obsolete_extension.rs @@ -293,6 +293,7 @@ macro_rules! generate_bridge_reject_obsolete_headers_and_messages { <$call as sp_runtime::traits::Dispatchable>::RuntimeOrigin, ), sp_runtime::transaction_validity::TransactionValidityError > { + use sp_runtime::traits::AsSystemOriginSigner; let tx_validity = sp_runtime::transaction_validity::ValidTransaction::default(); let who = origin.as_system_origin_signer().ok_or(sp_runtime::transaction_validity::InvalidTransaction::BadSigner)?; $( @@ -317,6 +318,7 @@ macro_rules! generate_bridge_reject_obsolete_headers_and_messages { _context: &Context, ) -> Result { use tuplex::PushBack; + use sp_runtime::traits::AsSystemOriginSigner; let to_post_dispatch = (); let relayer = origin.as_system_origin_signer().ok_or(sp_runtime::transaction_validity::InvalidTransaction::BadSigner)?; $( diff --git a/bridges/bin/runtime-common/src/mock.rs b/bridges/bin/runtime-common/src/mock.rs index 8ece01842388..2eef858263fe 100644 --- a/bridges/bin/runtime-common/src/mock.rs +++ b/bridges/bin/runtime-common/src/mock.rs @@ -45,7 +45,7 @@ use frame_support::{ use pallet_transaction_payment::Multiplier; use sp_runtime::{ testing::H256, - traits::{AsSystemOriginSigner, BlakeTwo256, ConstU32, ConstU64, ConstU8}, + traits::{BlakeTwo256, ConstU32, ConstU64, ConstU8}, FixedPointNumber, Perquintill, }; diff --git a/cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/tests/xcm_fee_estimation.rs b/cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/tests/xcm_fee_estimation.rs index aeec9b44dab4..8eef4529f73f 100644 --- a/cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/tests/xcm_fee_estimation.rs +++ b/cumulus/parachains/integration-tests/emulated/tests/assets/asset-hub-westend/src/tests/xcm_fee_estimation.rs @@ -313,7 +313,7 @@ fn construct_extrinsic_westend( type Runtime = ::Runtime; let account_id = ::AccountId::from(sender.public()); let tip = 0; - let extra: westend_runtime::SignedExtra = ( + let tx_ext: westend_runtime::TxExtension = ( frame_system::CheckNonZeroSender::::new(), frame_system::CheckSpecVersion::::new(), frame_system::CheckTxVersion::::new(), @@ -325,14 +325,14 @@ fn construct_extrinsic_westend( frame_system::CheckWeight::::new(), pallet_transaction_payment::ChargeTransactionPayment::::from(tip), ); - let raw_payload = westend_runtime::SignedPayload::new(call, extra).unwrap(); + let raw_payload = westend_runtime::SignedPayload::new(call, tx_ext).unwrap(); let signature = raw_payload.using_encoded(|payload| sender.sign(payload)); - let (call, extra, _) = raw_payload.deconstruct(); + let (call, tx_ext, _) = raw_payload.deconstruct(); westend_runtime::UncheckedExtrinsic::new_signed( call, account_id.into(), MultiSignature::Sr25519(signature), - extra, + tx_ext, ) } @@ -344,7 +344,7 @@ fn construct_extrinsic_penpal( type Runtime = ::Runtime; let account_id = ::AccountId::from(sender.public()); let tip = 0; - let extra: penpal_runtime::SignedExtra = ( + let tx_ext: penpal_runtime::TxExtension = ( frame_system::CheckNonZeroSender::::new(), frame_system::CheckSpecVersion::::new(), frame_system::CheckTxVersion::::new(), @@ -357,14 +357,14 @@ fn construct_extrinsic_penpal( pallet_asset_tx_payment::ChargeAssetTxPayment::::from(tip, None), ); type SignedPayload = - generic::SignedPayload; - let raw_payload = SignedPayload::new(call, extra).unwrap(); + generic::SignedPayload; + let raw_payload = SignedPayload::new(call, tx_ext).unwrap(); let signature = raw_payload.using_encoded(|payload| sender.sign(payload)); - let (call, extra, _) = raw_payload.deconstruct(); + let (call, tx_ext, _) = raw_payload.deconstruct(); penpal_runtime::UncheckedExtrinsic::new_signed( call, account_id.into(), MultiSignature::Sr25519(signature), - extra, + tx_ext, ) } diff --git a/substrate/frame/examples/tasks/src/mock.rs b/substrate/frame/examples/tasks/src/mock.rs index 33912bb5269c..97591b287cbd 100644 --- a/substrate/frame/examples/tasks/src/mock.rs +++ b/substrate/frame/examples/tasks/src/mock.rs @@ -20,7 +20,7 @@ use crate::{self as tasks_example}; use frame_support::derive_impl; -use sp_runtime::testing::TestXt; +use sp_runtime::generic::UncheckedExtrinsic; pub type AccountId = u32; pub type Balance = u32; @@ -33,7 +33,7 @@ frame_support::construct_runtime!( } ); -pub type Extrinsic = TestXt; +pub type Extrinsic = UncheckedExtrinsic; #[derive_impl(frame_system::config_preludes::TestDefaultConfig)] impl frame_system::Config for Runtime { diff --git a/substrate/frame/executive/src/tests.rs b/substrate/frame/executive/src/tests.rs index 6896689956f3..060c758f0ac8 100644 --- a/substrate/frame/executive/src/tests.rs +++ b/substrate/frame/executive/src/tests.rs @@ -356,6 +356,12 @@ impl pallet_balances::WeightInfo for BalancesWeights { fn force_adjust_total_issuance() -> Weight { Weight::zero() } + fn burn_allow_death() -> Weight { + Weight::zero() + } + fn burn_keep_alive() -> Weight { + Weight::zero() + } } #[derive_impl(pallet_balances::config_preludes::TestDefaultConfig)] diff --git a/substrate/frame/transaction-payment/skip-feeless-payment/src/mock.rs b/substrate/frame/transaction-payment/skip-feeless-payment/src/mock.rs index 634d68b10381..2875207ba1fb 100644 --- a/substrate/frame/transaction-payment/skip-feeless-payment/src/mock.rs +++ b/substrate/frame/transaction-payment/skip-feeless-payment/src/mock.rs @@ -18,7 +18,10 @@ use crate as pallet_skip_feeless_payment; use frame_support::{derive_impl, parameter_types}; use frame_system as system; -use sp_runtime::traits::{OriginOf, TransactionExtension}; +use sp_runtime::{ + traits::{OriginOf, TransactionExtension}, + transaction_validity::ValidTransaction, +}; type Block = frame_system::mocking::MockBlock; diff --git a/templates/parachain/runtime/src/configs/mod.rs b/templates/parachain/runtime/src/configs/mod.rs index 0aec332feaf6..4a5c0e010d77 100644 --- a/templates/parachain/runtime/src/configs/mod.rs +++ b/templates/parachain/runtime/src/configs/mod.rs @@ -170,6 +170,7 @@ impl pallet_transaction_payment::Config for Runtime { type LengthToFee = ConstantMultiplier; type FeeMultiplierUpdate = SlowAdjustingFeeUpdate; type OperationalFeeMultiplier = ConstU8<5>; + type WeightInfo = (); } impl pallet_sudo::Config for Runtime {