mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
add WeightReclaim transaction extension to all runtimes
This commit is contained in:
parent
f8fea111ab
commit
b04d2e618d
3 changed files with 6 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue