From e3670de7f450317aac7017cb89dca71936e90657 Mon Sep 17 00:00:00 2001 From: Bryan White Date: Tue, 19 Nov 2024 14:09:32 +0100 Subject: [PATCH] fix: tests --- x/tokenomics/keeper/token_logic_modules_test.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/x/tokenomics/keeper/token_logic_modules_test.go b/x/tokenomics/keeper/token_logic_modules_test.go index 4c33c397d..4a1254db8 100644 --- a/x/tokenomics/keeper/token_logic_modules_test.go +++ b/x/tokenomics/keeper/token_logic_modules_test.go @@ -7,6 +7,7 @@ import ( "math" "testing" + cosmoslog "cosmossdk.io/log" cosmosmath "cosmossdk.io/math" cosmostypes "github.com/cosmos/cosmos-sdk/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -51,7 +52,11 @@ func TestProcessTokenLogicModules_TLMBurnEqualsMint_Valid(t *testing.T) { numRelays := uint64(1000) // By supplier for application in this session // Prepare the keepers - keepers, ctx := testkeeper.NewTokenomicsModuleKeepers(t, nil, testkeeper.WithService(*service)) + keepers, ctx := testkeeper.NewTokenomicsModuleKeepers(t, + cosmoslog.NewNopLogger(), + testkeeper.WithService(*service), + testkeeper.WithDefaultModuleBalances(), + ) keepers.SetService(ctx, *service) // Ensure the claim is within relay mining bounds @@ -184,7 +189,11 @@ func TestProcessTokenLogicModules_TLMBurnEqualsMint_Valid_SupplierExceedsMaxClai supplierRevShareRatios := []float32{12.5, 37.5, 50} // Prepare the keepers - keepers, ctx := testkeeper.NewTokenomicsModuleKeepers(t, nil, testkeeper.WithService(*service)) + keepers, ctx := testkeeper.NewTokenomicsModuleKeepers(t, + cosmoslog.NewNopLogger(), + testkeeper.WithService(*service), + testkeeper.WithDefaultModuleBalances(), + ) keepers.SetService(ctx, *service) // Set up the relays to exceed the max claimable amount @@ -347,6 +356,7 @@ func TestProcessTokenLogicModules_TLMGlobalMint_Valid_MintDistributionCorrect(t testkeeper.WithService(*service), testkeeper.WithProposerAddr(proposerConsAddr), testkeeper.WithTokenLogicModules(tokenLogicModules), + testkeeper.WithDefaultModuleBalances(), } keepers, ctx := testkeeper.NewTokenomicsModuleKeepers(t, nil, opts...) keepers.SetService(ctx, *service)