Skip to content

Commit

Permalink
bench assert update (paritytech#12866)
Browse files Browse the repository at this point in the history
  • Loading branch information
muharem authored and ark0f committed Feb 27, 2023
1 parent 2f13f97 commit 28bf511
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frame/referenda/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ benchmarks_instance_pallet! {
verify {
assert_matches!(ReferendumInfoFor::<T, I>::get(index), Some(ReferendumInfo::Cancelled(_, None, _)));
let new_balance = T::Currency::free_balance(&caller);
assert!(new_balance > balance);
// the deposit is zero or make sure it was unreserved.
assert!(T::SubmissionDeposit::get().is_zero() || new_balance > balance);
}

cancel {
Expand Down

0 comments on commit 28bf511

Please sign in to comment.