git.delta.rocks / unique-network / refs/commits / 1d6b1d5ba996

difftreelog

feat enable evm transaction payment

Yaroslav Bolyukin2021-07-27parent: #690b63b.patch.diff
in: master

1 file changed

modifiedruntime/src/lib.rsdiffbeforeafterboth
255 type OnCreate = pallet_evm_contract_helpers::HelpersOnCreate<Self>;255 type OnCreate = pallet_evm_contract_helpers::HelpersOnCreate<Self>;
256 type ChainId = ChainId;256 type ChainId = ChainId;
257 type Runner = pallet_evm::runner::stack::Runner<Self>;257 type Runner = pallet_evm::runner::stack::Runner<Self>;
258 type OnChargeTransaction = ();258 type OnChargeTransaction = pallet_evm_transaction_payment::OnChargeTransaction<Self>;
259 type TransactionValidityHack = pallet_evm_transaction_payment::TransactionValidityHack<Self>;
259 type FindAuthor = EthereumFindAuthor<Aura>;260 type FindAuthor = EthereumFindAuthor<Aura>;
260}261}
261262
742 type SponsorshipHandler = SponsorshipHandler;743 type SponsorshipHandler = SponsorshipHandler;
743}744}
745
746impl pallet_evm_transaction_payment::Config for Runtime {
747 type SponsorshipHandler = (
748 pallet_nft::NftEthSponsorshipHandler<Self>,
749 pallet_evm_contract_helpers::HelpersContractSponsoring<Self>,
750 );
751 type Currency = Balances;
752}
744753
745impl pallet_nft_charge_transaction::Config for Runtime {}754impl pallet_nft_charge_transaction::Config for Runtime {}
746755