From 622d26a297ad22ef4d3152d063d5cf32e60c32a7 Mon Sep 17 00:00:00 2001 From: nuno Date: Wed, 25 Oct 2023 11:11:34 +0200 Subject: [PATCH] Fix most pallet-investments benchmarks --- pallets/investments/src/benchmarking.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pallets/investments/src/benchmarking.rs b/pallets/investments/src/benchmarking.rs index f286a714e8..9db46f4073 100644 --- a/pallets/investments/src/benchmarking.rs +++ b/pallets/investments/src/benchmarking.rs @@ -64,7 +64,7 @@ mod benchmarks { let investment_id = Helper::::get_investment_id(); let currency_id = T::Accountant::info(investment_id)?.payment_currency(); - T::Tokens::mint_into(currency_id, &caller, 1u32.into())?; + T::Tokens::mint_into(currency_id, &caller, 100_000_000u32.into())?; #[extrinsic_call] update_invest_order(RawOrigin::Signed(caller), investment_id, 1u32.into()); @@ -78,7 +78,7 @@ mod benchmarks { let investment_id = Helper::::get_investment_id(); let currency_id: CurrencyOf = T::Accountant::info(investment_id)?.id().into(); - T::Tokens::mint_into(currency_id, &caller, 1u32.into())?; + T::Tokens::mint_into(currency_id, &caller, 100_000_000_u32.into())?; #[extrinsic_call] update_redeem_order(RawOrigin::Signed(caller), investment_id, 1u32.into()); @@ -94,7 +94,7 @@ mod benchmarks { .unwrap() .payment_currency(); - T::Tokens::mint_into(currency_id, &caller, 1u32.into())?; + T::Tokens::mint_into(currency_id, &caller, 100_000_000u32.into())?; Pallet::::update_investment(&caller, investment_id, 1u32.into())?; for _ in 0..n { @@ -120,7 +120,7 @@ mod benchmarks { let investment_id = Helper::::get_investment_id(); let currency_id: CurrencyOf = T::Accountant::info(investment_id)?.id().into(); - T::Tokens::mint_into(currency_id, &caller, 1u32.into())?; + T::Tokens::mint_into(currency_id, &caller, 100_000_000u32.into())?; Pallet::::update_redemption(&caller, investment_id, 1u32.into())?; for _ in 0..n {