diff --git a/precompiles/balances-erc20/src/eip2612.rs b/precompiles/balances-erc20/src/eip2612.rs index 252aa61c..cbd2cec3 100644 --- a/precompiles/balances-erc20/src/eip2612.rs +++ b/precompiles/balances-erc20/src/eip2612.rs @@ -19,10 +19,10 @@ use frame_support::{ ensure, traits::{Get, Time}, }; -use sp_runtime::AccountId32; use sp_core::H256; use sp_io::hashing::keccak_256; use sp_runtime::traits::UniqueSaturatedInto; +use sp_runtime::AccountId32; use sp_std::vec::Vec; /// EIP2612 permit typehash. diff --git a/precompiles/balances-erc20/src/lib.rs b/precompiles/balances-erc20/src/lib.rs index 74d207b3..5024ccdd 100644 --- a/precompiles/balances-erc20/src/lib.rs +++ b/precompiles/balances-erc20/src/lib.rs @@ -30,10 +30,10 @@ use pallet_balances::pallet::{ Instance1, Instance10, Instance11, Instance12, Instance13, Instance14, Instance15, Instance16, Instance2, Instance3, Instance4, Instance5, Instance6, Instance7, Instance8, Instance9, }; -use sp_runtime::AccountId32; use pallet_evm::AddressMapping; use precompile_utils::prelude::*; use sp_core::{H160, H256, U256}; +use sp_runtime::AccountId32; use sp_std::vec::Vec; use sp_std::{ convert::{TryFrom, TryInto}, diff --git a/precompiles/balances-erc20/src/mock.rs b/precompiles/balances-erc20/src/mock.rs index da7602bb..1cddc955 100644 --- a/precompiles/balances-erc20/src/mock.rs +++ b/precompiles/balances-erc20/src/mock.rs @@ -193,7 +193,7 @@ impl pallet_evm::Config for Runtime { type WeightPerGas = WeightPerGas; type CallOrigin = EnsureAddressRoot; type WithdrawOrigin = EnsureAddressNever; - type AddressMapping = HashedAddressMapping; + type AddressMapping = AccountId; type Currency = Balances; type RuntimeEvent = RuntimeEvent; type Runner = pallet_evm::runner::stack::Runner;