From 620f7e7cf951d0af1d4356052a9a528023538c3f Mon Sep 17 00:00:00 2001 From: Piet Wolff Date: Sun, 25 Feb 2024 15:41:07 +0100 Subject: [PATCH] thaw previous freezes --- substrate/frame/conviction-voting/src/benchmarking.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/substrate/frame/conviction-voting/src/benchmarking.rs b/substrate/frame/conviction-voting/src/benchmarking.rs index 0997154763d9..292367120693 100644 --- a/substrate/frame/conviction-voting/src/benchmarking.rs +++ b/substrate/frame/conviction-voting/src/benchmarking.rs @@ -55,6 +55,8 @@ fn fill_voting, I: 'static>( fn funded_account, 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 }