Skip to content

Commit f6ecabf

Browse files
authored
add whitelist_account (#464)
1 parent 693651c commit f6ecabf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

benchmarking/src/lib.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1139,3 +1139,12 @@ macro_rules! add_benchmark {
11391139
}
11401140
)
11411141
}
1142+
1143+
#[macro_export]
1144+
macro_rules! whitelist_account {
1145+
($acc:ident) => {
1146+
frame_benchmarking::benchmarking::add_to_whitelist(
1147+
frame_system::Account::<Runtime>::hashed_key_for(&$acc).into(),
1148+
);
1149+
};
1150+
}

0 commit comments

Comments
 (0)