diff --git a/pallets/xvm/src/benchmarking.rs b/pallets/xvm/src/benchmarking.rs index e01342213..f416a4bc8 100644 --- a/pallets/xvm/src/benchmarking.rs +++ b/pallets/xvm/src/benchmarking.rs @@ -21,6 +21,7 @@ use super::*; use frame_benchmarking::v2::*; use parity_scale_codec::Encode; use sp_core::H160; +use sp_runtime::MultiAddress; #[benchmarks] mod benchmarks { @@ -51,7 +52,7 @@ mod benchmarks { }; let vm_id = VmId::Wasm; let source = whitelisted_caller(); - let target = whitelisted_caller::().encode(); + let target = MultiAddress::::Id(whitelisted_caller()).encode(); let input = vec![1, 2, 3]; #[block] diff --git a/pallets/xvm/src/mock.rs b/pallets/xvm/src/mock.rs index f080bcb5e..afc9898c1 100644 --- a/pallets/xvm/src/mock.rs +++ b/pallets/xvm/src/mock.rs @@ -33,7 +33,7 @@ use frame_support::{ use sp_core::{H160, H256}; use sp_runtime::{ testing::Header, - traits::{BlakeTwo256, IdentityLookup}, + traits::{AccountIdLookup, BlakeTwo256}, AccountId32, }; @@ -53,7 +53,7 @@ impl frame_system::Config for TestRuntime { type Hash = H256; type Hashing = BlakeTwo256; type AccountId = AccountId; - type Lookup = IdentityLookup; + type Lookup = AccountIdLookup; type Header = Header; type RuntimeEvent = RuntimeEvent; type BlockHashCount = ConstU64<250>;