Skip to content

Commit

Permalink
test: Add missing AccountProvider to mock runtime (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
conr2d authored Oct 14, 2024
1 parent 2bdf316 commit a2dd8d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion vendor/moonbeam/precompiles/assets-erc20/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use frame_support::{
};

use frame_system::{EnsureNever, EnsureRoot};
use pallet_evm::{EnsureAddressNever, EnsureAddressRoot};
use pallet_evm::{EnsureAddressNever, EnsureAddressRoot, FrameSystemAccountProvider};
use precompile_utils::{
mock_account,
precompile_set::*,
Expand Down Expand Up @@ -164,6 +164,7 @@ parameter_types! {
}

impl pallet_evm::Config for Runtime {
type AccountProvider = FrameSystemAccountProvider<Self>;
type FeeCalculator = ();
type GasWeightMapping = pallet_evm::FixedGasWeightMapping<Self>;
type WeightPerGas = WeightPerGas;
Expand Down
3 changes: 2 additions & 1 deletion vendor/moonbeam/precompiles/balances-erc20/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use super::*;

use frame_support::{construct_runtime, parameter_types, traits::Everything, weights::Weight};
use pallet_evm::{EnsureAddressNever, EnsureAddressRoot};
use pallet_evm::{EnsureAddressNever, EnsureAddressRoot, FrameSystemAccountProvider};
use precompile_utils::{precompile_set::*, testing::MockAccount};
use sp_core::{ConstU32, H256, U256};
use sp_runtime::{
Expand Down Expand Up @@ -117,6 +117,7 @@ parameter_types! {
}

impl pallet_evm::Config for Runtime {
type AccountProvider = FrameSystemAccountProvider<Self>;
type FeeCalculator = ();
type GasWeightMapping = pallet_evm::FixedGasWeightMapping<Self>;
type WeightPerGas = WeightPerGas;
Expand Down

0 comments on commit a2dd8d2

Please sign in to comment.