Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattverse committed Feb 2, 2024
1 parent 395ba98 commit 9f438ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions x/gov/keeper/deposit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func TestDepositAmount(t *testing.T) {
require.NoError(t, err)

tp := TestProposal
proposal, err := govKeeper.SubmitProposal(ctx, tp, "", "title", "summary", testAddrs[0])
proposal, err := govKeeper.SubmitProposal(ctx, tp, "", "title", "summary", testAddrs[0], false)
require.NoError(t, err)
proposalID := proposal.Id

Expand Down Expand Up @@ -321,7 +321,7 @@ func TestValidateInitialDeposit(t *testing.T) {

govKeeper.SetParams(ctx, params)

err := govKeeper.ValidateInitialDeposit(ctx, tc.initialDeposit, tc.expedited)
err := govKeeper.ValidateInitialDeposit(ctx, params, tc.initialDeposit, tc.expedited)

if tc.expectError {
require.Error(t, err)
Expand Down
9 changes: 6 additions & 3 deletions x/gov/keeper/export_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package keeper

import sdk "github.com/cosmos/cosmos-sdk/types"
import (
sdk "github.com/cosmos/cosmos-sdk/types"
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
)

// ValidateInitialDeposit is a helper function used only in deposit tests which returns the same
// functionality of validateInitialDeposit private function.
func (k Keeper) ValidateInitialDeposit(ctx sdk.Context, initialDeposit sdk.Coins, expedited bool) error {
return k.validateInitialDeposit(ctx, initialDeposit, expedited)
func (k Keeper) ValidateInitialDeposit(ctx sdk.Context, params v1.Params, initialDeposit sdk.Coins, expedited bool) error {
return k.validateInitialDeposit(ctx, params, initialDeposit, expedited)
}

0 comments on commit 9f438ba

Please sign in to comment.