Skip to content

Commit

Permalink
follow CI suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
camfairchild committed Feb 7, 2025
1 parent 2d615e6 commit 264dae2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pallets/collective/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ benchmarks_instance_pallet! {
// Whitelist voter account from further DB operations.
let voter_key = frame_system::Account::<T>::hashed_key_for(&voter);
frame_benchmarking::benchmarking::add_to_whitelist(voter_key.into());
}: close(SystemOrigin::Root.into(), last_hash, index, Weight::MAX, bytes_in_storage)
}: close(<frame_system::RawOrigin<AccountId> as Into<T>>::into(SystemOrigin::Root), last_hash, index, Weight::MAX, bytes_in_storage)
verify {
// The last proposal is removed.
assert_eq!(Collective::<T, I>::proposals().len(), (p - 1) as usize);
Expand Down Expand Up @@ -393,7 +393,7 @@ benchmarks_instance_pallet! {
index, approve,
)?;

}: close(SystemOrigin::Root.into(), last_hash, index, Weight::MAX, bytes_in_storage)
}: close(<frame_system::RawOrigin<AccountId> as Into<T>>::into(SystemOrigin::Root), last_hash, index, Weight::MAX, bytes_in_storage)
verify {
// The last proposal is removed.
assert_eq!(Collective::<T, I>::proposals().len(), (p - 1) as usize);
Expand Down Expand Up @@ -473,7 +473,7 @@ benchmarks_instance_pallet! {
assert_eq!(Collective::<T, I>::proposals().len(), p as usize);

// Prime nay will close it as disapproved
}: close(SystemOrigin::Root.into(), last_hash, index, Weight::MAX, bytes_in_storage)
}: close(<frame_system::RawOrigin<AccountId> as Into<T>>::into(SystemOrigin::Root), last_hash, index, Weight::MAX, bytes_in_storage)
verify {
assert_eq!(Collective::<T, I>::proposals().len(), (p - 1) as usize);
assert_last_event::<T, I>(Event::Disapproved { proposal_hash: last_hash }.into());
Expand Down Expand Up @@ -542,7 +542,7 @@ benchmarks_instance_pallet! {
assert_eq!(Collective::<T, I>::proposals().len(), p as usize);

// Prime aye will close it as approved
}: close(SystemOrigin::Root.into(), last_hash, p - 1, Weight::MAX, bytes_in_storage)
}: close(<frame_system::RawOrigin<AccountId> as Into<T>>::into(SystemOrigin::Root), last_hash, p - 1, Weight::MAX, bytes_in_storage)
verify {
assert_eq!(Collective::<T, I>::proposals().len(), (p - 1) as usize);
assert_last_event::<T, I>(Event::Executed { proposal_hash: last_hash, result: Ok(()) }.into());
Expand Down

0 comments on commit 264dae2

Please sign in to comment.