Skip to content

Commit

Permalink
enable all
Browse files Browse the repository at this point in the history
  • Loading branch information
aljo242 committed Jun 4, 2024
1 parent 2fd9614 commit 0381b1a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions x/feemarket/ante/fee_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestAnteHandle(t *testing.T) {
RunPost: false,
Simulate: false,
ExpPass: false,
ExpErr: sdkerrors.ErrInvalidGasLimit,
ExpErr: sdkerrors.ErrOutOfGas,
},
// test --gas=auto flag settings
// when --gas=auto is set, cosmos-sdk sets gas=0 and simulate=true
Expand Down Expand Up @@ -74,7 +74,7 @@ func TestAnteHandle(t *testing.T) {
RunPost: false,
Simulate: false,
ExpPass: false,
ExpErr: sdkerrors.ErrInvalidGasLimit,
ExpErr: sdkerrors.ErrOutOfGas,
},
{
Name: "signer has enough funds, should pass",
Expand Down
4 changes: 4 additions & 0 deletions x/feemarket/ante/suite/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ func (s *TestSuite) SetupHandlers(mock bool) {
authante.NewSetUpContextDecorator(), // outermost AnteDecorator. SetUpContext must be called first
feemarketante.NewFeeMarketCheckDecorator( // fee market replaces fee deduct decorator
s.FeeMarketKeeper,
s.AccountKeeper,
s.BankKeeper,
s.FeeGrantKeeper,
nil,
),
authante.NewSigGasConsumeDecorator(s.AccountKeeper, authante.DefaultSigVerificationGasConsumer),
}
Expand Down
4 changes: 2 additions & 2 deletions x/feemarket/post/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func DeductCoins(bankKeeper BankKeeper, ctx sdk.Context, acc sdk.AccountI, coins

err := bankKeeper.SendCoinsFromAccountToModule(ctx, acc.GetAddress(), targetModuleAcc, coins)
if err != nil {
return errorsmod.Wrapf(sdkerrors.ErrInsufficientFunds, err.Error())
return err
}

return nil
Expand All @@ -237,7 +237,7 @@ func SendTip(bankKeeper BankKeeper, ctx sdk.Context, acc, proposer sdk.AccAddres

err := bankKeeper.SendCoins(ctx, acc, proposer, coins)
if err != nil {
return errorsmod.Wrapf(sdkerrors.ErrInsufficientFunds, err.Error())
return err
}

return nil
Expand Down

0 comments on commit 0381b1a

Please sign in to comment.