Skip to content

Commit

Permalink
Set inflation to more than zero for a full benchmark of handle_inflat…
Browse files Browse the repository at this point in the history
…ion (#1234)

Update benchmarks.rs
  • Loading branch information
Chralt98 authored Jan 16, 2024
1 parent e10b9c9 commit b5e0d4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zrml/court/src/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use crate::{
types::{CourtParticipantInfo, CourtPoolItem, CourtStatus, Draw, Vote},
AppealInfo, BalanceOf, Call, Config, CourtId, CourtPool, Courts, DelegatedStakesOf,
MarketIdToCourtId, MarketOf, Pallet as Court, Pallet, Participants, RequestBlock,
SelectedDraws, VoteItem,
SelectedDraws, VoteItem, YearlyInflation,
};
use alloc::{vec, vec::Vec};
use frame_benchmarking::{account, benchmarks, whitelisted_caller};
Expand Down Expand Up @@ -672,6 +672,7 @@ benchmarks! {

<frame_system::Pallet<T>>::set_block_number(T::InflationPeriod::get());
let now = <frame_system::Pallet<T>>::block_number();
YearlyInflation::<T>::put(Perbill::from_percent(2));
}: {
Court::<T>::handle_inflation(now);
}
Expand Down

0 comments on commit b5e0d4e

Please sign in to comment.