From dc97a25bc953ed5be909512fa94e641750d5df6a Mon Sep 17 00:00:00 2001 From: skosito Date: Fri, 12 Apr 2024 17:58:02 +0200 Subject: [PATCH] Remove not needed params store mock --- testutil/keeper/emissions.go | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/testutil/keeper/emissions.go b/testutil/keeper/emissions.go index 8744aa86fd..f7d741a5c7 100644 --- a/testutil/keeper/emissions.go +++ b/testutil/keeper/emissions.go @@ -16,11 +16,10 @@ import ( ) type EmissionMockOptions struct { - UseBankMock bool - UseStakingMock bool - UseObserverMock bool - UseAccountMock bool - UseParamStoreMock bool + UseBankMock bool + UseStakingMock bool + UseObserverMock bool + UseAccountMock bool } func EmissionsKeeper(t testing.TB) (*keeper.Keeper, sdk.Context, SDKKeepers, ZetaKeepers) { @@ -100,10 +99,8 @@ func EmissionKeeperWithMockOptions( authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) - if !mockOptions.UseParamStoreMock { - err := k.SetParams(ctx, types.DefaultParams()) - require.NoError(t, err) - } + err := k.SetParams(ctx, types.DefaultParams()) + require.NoError(t, err) return k, ctx, sdkKeepers, zetaKeepers }