From 85b70e26fda2d0836b6c4565cb820ff1d30ddbe0 Mon Sep 17 00:00:00 2001 From: Guantong Date: Thu, 29 Dec 2022 14:51:29 +0800 Subject: [PATCH] Use `DealWithFees` in `transaction_payment` (#164) --- runtime/crab/src/pallets/transaction_payment.rs | 3 ++- runtime/darwinia/src/pallets/transaction_payment.rs | 3 ++- runtime/pangolin/src/pallets/transaction_payment.rs | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/runtime/crab/src/pallets/transaction_payment.rs b/runtime/crab/src/pallets/transaction_payment.rs index 691273b7b..85b2d11c5 100644 --- a/runtime/crab/src/pallets/transaction_payment.rs +++ b/runtime/crab/src/pallets/transaction_payment.rs @@ -23,7 +23,8 @@ impl pallet_transaction_payment::Config for Runtime { type FeeMultiplierUpdate = polkadot_runtime_common::SlowAdjustingFeeUpdate; // Relay Chain `TransactionByteFee` / 10 type LengthToFee = ConstantMultiplier>; - type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter; + type OnChargeTransaction = + pallet_transaction_payment::CurrencyAdapter>; type OperationalFeeMultiplier = sp_runtime::traits::ConstU8<5>; type RuntimeEvent = RuntimeEvent; type WeightToFee = WeightToFee; diff --git a/runtime/darwinia/src/pallets/transaction_payment.rs b/runtime/darwinia/src/pallets/transaction_payment.rs index 691273b7b..85b2d11c5 100644 --- a/runtime/darwinia/src/pallets/transaction_payment.rs +++ b/runtime/darwinia/src/pallets/transaction_payment.rs @@ -23,7 +23,8 @@ impl pallet_transaction_payment::Config for Runtime { type FeeMultiplierUpdate = polkadot_runtime_common::SlowAdjustingFeeUpdate; // Relay Chain `TransactionByteFee` / 10 type LengthToFee = ConstantMultiplier>; - type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter; + type OnChargeTransaction = + pallet_transaction_payment::CurrencyAdapter>; type OperationalFeeMultiplier = sp_runtime::traits::ConstU8<5>; type RuntimeEvent = RuntimeEvent; type WeightToFee = WeightToFee; diff --git a/runtime/pangolin/src/pallets/transaction_payment.rs b/runtime/pangolin/src/pallets/transaction_payment.rs index 691273b7b..85b2d11c5 100644 --- a/runtime/pangolin/src/pallets/transaction_payment.rs +++ b/runtime/pangolin/src/pallets/transaction_payment.rs @@ -23,7 +23,8 @@ impl pallet_transaction_payment::Config for Runtime { type FeeMultiplierUpdate = polkadot_runtime_common::SlowAdjustingFeeUpdate; // Relay Chain `TransactionByteFee` / 10 type LengthToFee = ConstantMultiplier>; - type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter; + type OnChargeTransaction = + pallet_transaction_payment::CurrencyAdapter>; type OperationalFeeMultiplier = sp_runtime::traits::ConstU8<5>; type RuntimeEvent = RuntimeEvent; type WeightToFee = WeightToFee;