Skip to content

Commit

Permalink
thaw previous freezes
Browse files Browse the repository at this point in the history
  • Loading branch information
PieWol committed Feb 25, 2024
1 parent d1bcae2 commit 620f7e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions substrate/frame/conviction-voting/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ fn fill_voting<T: Config<I>, I: 'static>(
fn funded_account<T: Config<I>, I: 'static>(name: &'static str, index: u32) -> T::AccountId {
let caller: T::AccountId = account(name, index, SEED);
T::Currency::set_balance(&caller, 100_000_000u32.into());
// remove all freezes from previous benchmarks so we never run out of available funds
T::Currency::thaw(&FreezeReason::ConvictionVoting.into(), &caller);
caller
}

Expand Down

0 comments on commit 620f7e7

Please sign in to comment.