Skip to content

Commit 90f2d74

Browse files
committed
Fix benchmark transfer_treasury_funds
Signed-off-by: linning <[email protected]>
1 parent 5db7219 commit 90f2d74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/pallet-domains/src/benchmarking.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,8 +850,8 @@ mod benchmarks {
850850
#[benchmark]
851851
fn transfer_treasury_funds() {
852852
// Ensure the treasury account has balance
853-
let treasury_amount = 5000u32.into();
854-
let transfer_amount = 500u32.into();
853+
let transfer_amount = T::Currency::minimum_balance();
854+
let treasury_amount = T::Currency::minimum_balance() + transfer_amount;
855855
let account = account("slashed_account", 1, SEED);
856856
assert_eq!(T::Currency::balance(&account), 0u32.into());
857857
T::Currency::set_balance(&T::TreasuryAccount::get(), treasury_amount);

0 commit comments

Comments
 (0)