Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: evm txs must deal with fees the same way that substrate txs #732

Merged
merged 13 commits into from
Sep 1, 2021
Merged
4 changes: 2 additions & 2 deletions runtime/moonbase/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ impl pallet_evm::Config for Runtime {
type Runner = pallet_evm::runner::stack::Runner<Self>;
type Precompiles = MoonbasePrecompiles<Self>;
type ChainId = EthereumChainId;
type OnChargeTransaction = ();
type OnChargeTransaction = pallet_evm::EVMCurrencyAdapter<Balances, DealWithFees<Runtime>>;
type BlockGasLimit = BlockGasLimit;
type FindAuthor = AuthorInherent;
}
Expand Down Expand Up @@ -486,7 +486,7 @@ parameter_types! {
pub const ProposalBond: Permill = Permill::from_percent(5);
pub const ProposalBondMinimum: Balance = 1 * currency::UNIT;
pub const SpendPeriod: BlockNumber = 6 * DAYS;
pub const TreasuryId: PalletId = PalletId(*b"pc/trsry");
pub const TreasuryId: PalletId = PalletId(*b"py/trsry");
librelois marked this conversation as resolved.
Show resolved Hide resolved
pub const MaxApprovals: u32 = 100;
}

Expand Down
4 changes: 2 additions & 2 deletions runtime/moonbeam/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ impl pallet_evm::Config for Runtime {
type Runner = pallet_evm::runner::stack::Runner<Self>;
type Precompiles = MoonbeamPrecompiles<Self>;
type ChainId = EthereumChainId;
type OnChargeTransaction = ();
type OnChargeTransaction = pallet_evm::EVMCurrencyAdapter<Balances, DealWithFees<Runtime>>;
type BlockGasLimit = BlockGasLimit;
type FindAuthor = AuthorInherent;
}
Expand Down Expand Up @@ -502,7 +502,7 @@ parameter_types! {
pub const ProposalBond: Permill = Permill::from_percent(5);
pub const ProposalBondMinimum: Balance = 1 * currency::GLMR;
pub const SpendPeriod: BlockNumber = 6 * DAYS;
pub const TreasuryId: PalletId = PalletId(*b"pc/trsry");
pub const TreasuryId: PalletId = PalletId(*b"py/trsry");
pub const MaxApprovals: u32 = 100;
}

Expand Down
2 changes: 1 addition & 1 deletion runtime/moonriver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ impl pallet_evm::Config for Runtime {
type Runner = pallet_evm::runner::stack::Runner<Self>;
type Precompiles = MoonriverPrecompiles<Self>;
type ChainId = EthereumChainId;
type OnChargeTransaction = ();
type OnChargeTransaction = pallet_evm::EVMCurrencyAdapter<Balances, DealWithFees<Runtime>>;
type BlockGasLimit = BlockGasLimit;
type FindAuthor = AuthorInherent;
}
Expand Down