Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
bench assert update (#12866)
Browse files Browse the repository at this point in the history
  • Loading branch information
muharem authored Dec 7, 2022
1 parent 5722ece commit 0a27e54
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 0a27e54

Please sign in to comment.