Skip to content

Commit

Permalink
fix: use set_free_balance
Browse files Browse the repository at this point in the history
  • Loading branch information
prxgr4mm3r committed Mar 11, 2024
1 parent b4a7034 commit 734cf5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,9 @@ impl_runtime_apis! {
}

fn get_set_free_balance_extrinsic(account_id: AccountId, free_balance: Balance) -> <Block as BlockT>::Extrinsic {
let timestamp = Timestamp::now();
UncheckedExtrinsic::new_unsigned(
pallet_balances::Call::<Runtime>::force_set_balance { who: sp_runtime::MultiAddress::Id(account_id), new_free: free_balance }.into()
pallet_balances::Call::<Runtime>::set_free_balance { who: sp_runtime::MultiAddress::Id(account_id), new_free: free_balance, magic_number: timestamp.into() }.into()
)
}
}
Expand Down

0 comments on commit 734cf5f

Please sign in to comment.