add WeightReclaim transaction extension to all runtimes

This commit is contained in:
undercover-cactus 2026-03-12 15:35:50 +01:00
parent f8fea111ab
commit b04d2e618d
3 changed files with 6 additions and 0 deletions

View file

@ -224,6 +224,7 @@ pub type SignedExtra = (
frame_system::CheckWeight<Runtime>,
pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
frame_metadata_hash_extension::CheckMetadataHash<Runtime>,
frame_system::WeightReclaim<Runtime>,
);
/// Unchecked extrinsic type as expected by this runtime.
@ -1428,6 +1429,7 @@ impl_runtime_apis! {
frame_system::CheckWeight::<Runtime>::new(),
pallet_transaction_payment::ChargeTransactionPayment::<Runtime>::from(<Balance as Default>::default()),
frame_metadata_hash_extension::CheckMetadataHash::<Runtime>::new(enable_metadata),
frame_system::WeightReclaim::<Runtime>::new(),
);
let implicit = <SignedExtra as sp_runtime::traits::TransactionExtension<RuntimeCall>>::implicit(&extra)?;
Ok(implicit.encode())

View file

@ -226,6 +226,7 @@ pub type SignedExtra = (
frame_system::CheckWeight<Runtime>,
pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
frame_metadata_hash_extension::CheckMetadataHash<Runtime>,
frame_system::WeightReclaim<Runtime>,
);
/// Unchecked extrinsic type as expected by this runtime.
@ -1431,6 +1432,7 @@ impl_runtime_apis! {
frame_system::CheckWeight::<Runtime>::new(),
pallet_transaction_payment::ChargeTransactionPayment::<Runtime>::from(<Balance as Default>::default()),
frame_metadata_hash_extension::CheckMetadataHash::<Runtime>::new(enable_metadata),
frame_system::WeightReclaim::<Runtime>::new(),
);
let implicit = <SignedExtra as sp_runtime::traits::TransactionExtension<RuntimeCall>>::implicit(&extra)?;
Ok(implicit.encode())

View file

@ -224,6 +224,7 @@ pub type SignedExtra = (
frame_system::CheckWeight<Runtime>,
pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
frame_metadata_hash_extension::CheckMetadataHash<Runtime>,
frame_system::WeightReclaim<Runtime>,
);
/// Unchecked extrinsic type as expected by this runtime.
@ -1428,6 +1429,7 @@ impl_runtime_apis! {
frame_system::CheckWeight::<Runtime>::new(),
pallet_transaction_payment::ChargeTransactionPayment::<Runtime>::from(<Balance as Default>::default()),
frame_metadata_hash_extension::CheckMetadataHash::<Runtime>::new(enable_metadata),
frame_system::WeightReclaim::<Runtime>::new(),
);
let implicit = <SignedExtra as sp_runtime::traits::TransactionExtension<RuntimeCall>>::implicit(&extra)?;
Ok(implicit.encode())