Skip to content

Commit

Permalink
Fix benchmarks.
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunxw committed Jul 26, 2023
1 parent 6b22ce6 commit 61220e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pallets/xvm/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -51,7 +52,7 @@ mod benchmarks {
};
let vm_id = VmId::Wasm;
let source = whitelisted_caller();
let target = whitelisted_caller::<T::AccountId>().encode();
let target = MultiAddress::<T::AccountId, ()>::Id(whitelisted_caller()).encode();
let input = vec![1, 2, 3];

#[block]
Expand Down
4 changes: 2 additions & 2 deletions pallets/xvm/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use frame_support::{
use sp_core::{H160, H256};
use sp_runtime::{
testing::Header,
traits::{BlakeTwo256, IdentityLookup},
traits::{AccountIdLookup, BlakeTwo256},
AccountId32,
};

Expand All @@ -53,7 +53,7 @@ impl frame_system::Config for TestRuntime {
type Hash = H256;
type Hashing = BlakeTwo256;
type AccountId = AccountId;
type Lookup = IdentityLookup<Self::AccountId>;
type Lookup = AccountIdLookup<Self::AccountId, ()>;
type Header = Header;
type RuntimeEvent = RuntimeEvent;
type BlockHashCount = ConstU64<250>;
Expand Down

0 comments on commit 61220e6

Please sign in to comment.