Skip to content

Commit 16bbbdb

Browse files
committed
Use set_balance instead of make_free_balance_be
1 parent 9032f95 commit 16bbbdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pallets/registry/src/benchmarking.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ mod benchmarks {
4040
fn set_identity() {
4141
// The target user
4242
let caller: T::AccountId = whitelisted_caller();
43-
let _ = T::Currency::make_free_balance_be(&caller, BalanceOf::<T>::max_value());
43+
let _ = T::Currency::set_balance(&caller, BalanceOf::<T>::max_value());
4444

4545
#[extrinsic_call]
4646
_(
@@ -56,7 +56,7 @@ mod benchmarks {
5656
fn clear_identity() {
5757
// The target user
5858
let caller: T::AccountId = whitelisted_caller();
59-
let _ = T::Currency::make_free_balance_be(&caller, BalanceOf::<T>::max_value());
59+
let _ = T::Currency::set_balance(&caller, BalanceOf::<T>::max_value());
6060

6161
let vali_account = account::<T::AccountId>("account", 0, 0u32);
6262

0 commit comments

Comments
 (0)