Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Apr 25, 2024
1 parent 392c9ed commit 6aa689c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/sims/feegrant/operations_test.go
Expand Up @@ -199,7 +199,7 @@ func (suite *SimTestSuite) TestSimulateMsgRevokeAllowance() {
require.NoError(err)

// execute operation
op := simulation.SimulateMsgRevokeAllowance(codec.NewProtoCodec(suite.interfaceRegistry), suite.txConfig, suite.accountKeeper, suite.bankKeeper, suite.feegrantKeeper, codecaddress.NewBech32Codec("cosmos"))
op := simulation.SimulateMsgRevokeAllowance(codec.NewProtoCodec(suite.interfaceRegistry), suite.txConfig, suite.accountKeeper, suite.bankKeeper, suite.feegrantKeeper)
operationMsg, futureOperations, err := op(r, app.BaseApp, ctx, accounts, "")
require.NoError(err)

Expand Down
2 changes: 2 additions & 0 deletions x/accounts/defaults/lockup/lockup_test.go
Expand Up @@ -16,6 +16,7 @@ import (
)

func setup(t *testing.T, ctx context.Context, ss store.KVStoreService) *BaseLockup {
t.Helper()
deps := makeMockDependencies(ss)
owner := "owner"

Expand Down Expand Up @@ -52,6 +53,7 @@ func TestInitLockupAccount(t *testing.T) {
}

for _, test := range testcases {
test := test
_, err := baseLockup.Init(ctx, &test.msg)
if test.expErr != nil {
require.Equal(t, test.expErr, err)
Expand Down
1 change: 1 addition & 0 deletions x/accounts/defaults/lockup/utils_test.go
Expand Up @@ -53,6 +53,7 @@ func (a addressCodec) StringToBytes(text string) ([]byte, error) { return []byte
func (a addressCodec) BytesToString(bz []byte) (string, error) { return string(bz), nil }

func newMockContext(t *testing.T) (context.Context, store.KVStoreService) {
t.Helper()
return accountstd.NewMockContext(
0, []byte("lockup_account"), []byte("sender"), TestFunds, func(ctx context.Context, sender []byte, msg, msgResp ProtoMsg) error {
return nil
Expand Down

0 comments on commit 6aa689c

Please sign in to comment.