Skip to content

Commit

Permalink
fix: package "cosmossdk.io/x/slashing/types" is being imported more t…
Browse files Browse the repository at this point in the history
…han once
  • Loading branch information
Halimao authored Nov 13, 2023
1 parent caf7630 commit dba0fd1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x/slashing/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
authtypes "cosmossdk.io/x/auth/types"
slashingkeeper "cosmossdk.io/x/slashing/keeper"
slashingtestutil "cosmossdk.io/x/slashing/testutil"
"cosmossdk.io/x/slashing/types"
slashingtypes "cosmossdk.io/x/slashing/types"

"github.com/cosmos/cosmos-sdk/baseapp"
Expand Down Expand Up @@ -55,7 +54,7 @@ func (s *KeeperTestSuite) SetupTest() {
s.stakingKeeper.EXPECT().ValidatorAddressCodec().Return(address.NewBech32Codec("cosmosvaloper")).AnyTimes()
s.stakingKeeper.EXPECT().ConsensusAddressCodec().Return(address.NewBech32Codec("cosmosvalcons")).AnyTimes()

authStr, err := address.NewBech32Codec("cosmos").BytesToString(authtypes.NewModuleAddress(types.GovModuleName))
authStr, err := address.NewBech32Codec("cosmos").BytesToString(authtypes.NewModuleAddress(slashingtypes.GovModuleName))
s.Require().NoError(err)

s.ctx = ctx
Expand Down

0 comments on commit dba0fd1

Please sign in to comment.