mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-08 21:47:23 +00:00
[FRAME] Introduce force_adjust_total_issuance (#3001)
Add `Balances::force_adjust_total_issuance` as preparation for fixing https://github.com/polkadot-fellows/runtimes/issues/147. Important changes in `substrate/frame/balances/src/lib.rs`. TODO: - [x] Update weights --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: command-bot <> Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
committed by
GitHub
parent
4220503d28
commit
5a6f6d33d3
@@ -286,6 +286,17 @@ mod benchmarks {
|
||||
}
|
||||
}
|
||||
|
||||
#[benchmark]
|
||||
fn force_adjust_total_issuance() {
|
||||
let ti = Balances::<T, I>::total_issuance();
|
||||
let delta = 123u32.into();
|
||||
|
||||
#[extrinsic_call]
|
||||
_(RawOrigin::Root, AdjustmentDirection::Increase, delta);
|
||||
|
||||
assert_eq!(Balances::<T, I>::total_issuance(), ti + delta);
|
||||
}
|
||||
|
||||
impl_benchmark_test_suite! {
|
||||
Balances,
|
||||
crate::tests::ExtBuilder::default().build(),
|
||||
|
||||
Reference in New Issue
Block a user