Assets pallet: Don't allow set_min_balance when sufficient (#13510)

* Assets pallet: Don't allow set_min_balance when sufficient

* fix

* fix benchmark

* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_assets

* Update frame/assets/src/lib.rs

* fix

* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_assets

---------

Co-authored-by: command-bot <>
Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
Sergej Sakac
2023-03-03 21:39:45 +01:00
committed by GitHub
parent e4bf9f2125
commit 1d6423b41d
4 changed files with 169 additions and 189 deletions
+1 -1
View File
@@ -472,7 +472,7 @@ benchmarks_instance_pallet! {
}
set_min_balance {
let (asset_id, caller, caller_lookup) = create_default_asset::<T, I>(true);
let (asset_id, caller, caller_lookup) = create_default_asset::<T, I>(false);
}: _(SystemOrigin::Signed(caller.clone()), asset_id, 50u32.into())
verify {
assert_last_event::<T, I>(Event::AssetMinBalanceChanged { asset_id: asset_id.into(), new_min_balance: 50u32.into() }.into());