--- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -255,7 +255,8 @@ type OnCreate = pallet_evm_contract_helpers::HelpersOnCreate; type ChainId = ChainId; type Runner = pallet_evm::runner::stack::Runner; - type OnChargeTransaction = (); + type OnChargeTransaction = pallet_evm_transaction_payment::OnChargeTransaction; + type TransactionValidityHack = pallet_evm_transaction_payment::TransactionValidityHack; type FindAuthor = EthereumFindAuthor; } @@ -742,6 +743,14 @@ type SponsorshipHandler = SponsorshipHandler; } +impl pallet_evm_transaction_payment::Config for Runtime { + type SponsorshipHandler = ( + pallet_nft::NftEthSponsorshipHandler, + pallet_evm_contract_helpers::HelpersContractSponsoring, + ); + type Currency = Balances; +} + impl pallet_nft_charge_transaction::Config for Runtime {} // impl pallet_contract_helpers::Config for Runtime {}