Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
freeelancer committed Feb 22, 2024
1 parent 515e46a commit 777132c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion x/smartaccount/ante/pretransaction.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package ante

import (
sdkerrors "cosmossdk.io/errors"
"encoding/json"

sdkerrors "cosmossdk.io/errors"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrortypes "github.com/cosmos/cosmos-sdk/types/errors"
tx2 "github.com/cosmos/cosmos-sdk/types/tx"
Expand Down Expand Up @@ -39,6 +40,9 @@ func (pth PreTransactionHookDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, si
return ctx, err
}
data, err := BuildPreTransactionHookMsg(tx)
if err != nil {
return ctx, err
}
_, err = pth.wasmKeeper.Sudo(ctx, contractAddr, data)
if err != nil {
return ctx, err
Expand Down
2 changes: 1 addition & 1 deletion x/smartaccount/test_helpers/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type SmartAccountTestSuite struct {
WasmKeeper wasmkeeper.Keeper
}

func (s SmartAccountTestSuite) SetupTests() {
func (s *SmartAccountTestSuite) SetupTests() {
s.Setup()
s.SmartAccountKeeper = s.App.Keepers.SmartAccountKeeper
s.WasmKeeper = s.App.Keepers.WasmKeeper
Expand Down

0 comments on commit 777132c

Please sign in to comment.