Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mvid committed Jul 19, 2023
1 parent ac62ab5 commit 86ae9dd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ linters:
enable:
- bodyclose
- deadcode
- depguard
# - depguard
- dogsled
# - errcheck
- goconst
Expand Down
3 changes: 2 additions & 1 deletion x/axelarcork/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import (
"encoding/hex"
"encoding/json"
"fmt"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"strconv"
"time"

sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"

sdk "github.com/cosmos/cosmos-sdk/types"
transfertypes "github.com/cosmos/ibc-go/v3/modules/apps/transfer/types"
clienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
Expand Down
7 changes: 6 additions & 1 deletion x/axelarcork/tests/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ func NewTestSetup(t *testing.T, ctl *gomock.Controller) *Setup {
distributionKeeperMock := mocks.NewMockDistributionKeeper(ctl)
ibcModuleMock := mocks.NewMockIBCModule(ctl)
ics4WrapperMock := mocks.NewMockICS4Wrapper(ctl)
gravityKeeper := mocks.NewMockGravityKeeper(ctl)

paramsKeeper := initializer.paramsKeeper()
acKeeper := initializer.axelarcorkKeeper(paramsKeeper, stakingKeeper, transferKeeperMock, distributionKeeperMock, ics4WrapperMock)
acKeeper := initializer.axelarcorkKeeper(
paramsKeeper, stakingKeeper, transferKeeperMock, distributionKeeperMock,
ics4WrapperMock, gravityKeeper)

require.NoError(t, initializer.StateStore.LoadLatestVersion())

Expand Down Expand Up @@ -142,6 +145,7 @@ func (i initializer) axelarcorkKeeper(
transferKeeper types.TransferKeeper,
distributionKeeper types.DistributionKeeper,
ics4Wrapper porttypes.ICS4Wrapper,
gravityKeeper types.GravityKeeper,
) *keeper.Keeper {
storeKey := sdk.NewKVStoreKey(types.StoreKey)
i.StateStore.MountStoreWithDB(storeKey, storetypes.StoreTypeIAVL, i.DB)
Expand All @@ -155,6 +159,7 @@ func (i initializer) axelarcorkKeeper(
transferKeeper,
distributionKeeper,
ics4Wrapper,
gravityKeeper,
)

return &routerKeeper
Expand Down
1 change: 1 addition & 0 deletions x/axelarcork/types/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package types

import (
"context"

sdk "github.com/cosmos/cosmos-sdk/types"
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
Expand Down

0 comments on commit 86ae9dd

Please sign in to comment.