Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
better macro
  • Loading branch information
kianenigma committed Sep 9, 2020
commit cd310221486ef1916cdd35543f6adf1aedd36638
5 changes: 3 additions & 2 deletions frame/staking/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ const MAX_SLASHES: u32 = 1000;

macro_rules! do_whitelist {
($acc:ident) => {
let caller_key = frame_system::Account::<T>::hashed_key_for(&$acc);
frame_benchmarking::benchmarking::add_to_whitelist(caller_key.into());
frame_benchmarking::benchmarking::add_to_whitelist(
frame_system::Account::<T>::hashed_key_for(&$acc).into()
);
}
}

Expand Down