Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Jun 14, 2024
1 parent 99bc320 commit 8ebdc82
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 18 deletions.
1 change: 1 addition & 0 deletions server/v2/cometbft/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ replace (
cosmossdk.io/server/v2 => ../
cosmossdk.io/server/v2/appmanager => ../appmanager
cosmossdk.io/store/v2 => ../../../store/v2
cosmossdk.io/store => ../../../store
cosmossdk.io/x/accounts => ../../../x/accounts
cosmossdk.io/x/auth => ../../../x/auth
cosmossdk.io/x/bank => ../../../x/bank
Expand Down
2 changes: 1 addition & 1 deletion server/v2/streaming/context.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package streaming

import "cosmossdk.io/log"
import "cosmossdk.io/core/log"

// Context is an interface used by an App to pass context information
// needed to process store streaming requests.
Expand Down
2 changes: 1 addition & 1 deletion server/v2/streaming/streaming_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"

"cosmossdk.io/log"
"cosmossdk.io/core/log"
)

type PluginTestSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion simapp/mint_fn.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

type MintBankKeeper interface {
MintCoins(ctx context.Context, moduleName string, coins sdk.Coins) error
SendCoinsFromModuleToModule(ctx context.Context, senderModule string, recipientModule string, amt sdk.Coins) error
SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt sdk.Coins) error
}

// ProvideExampleMintFn returns the function used in x/mint's endblocker to mint new tokens.
Expand Down
2 changes: 1 addition & 1 deletion simapp/v2/app_di.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,5 +244,5 @@ func (app *SimApp) TxConfig() client.TxConfig {
}

func (app *SimApp) GetConsensusAuthority() string {
return string(app.ConsensusParamsKeeper.GetAuthority())
return app.ConsensusParamsKeeper.GetAuthority()
}
1 change: 1 addition & 0 deletions x/auth/ante/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ type FeegrantKeeper interface {

type ConsensusKeeper interface {
Params(context.Context, *consensustypes.QueryParamsRequest) (*consensustypes.QueryParamsResponse, error)
GetCometInfo(ctx context.Context, _ *consensustypes.QueryGetCometInfoRequest) (*consensustypes.QueryGetCometInfoResponse, error)
}
15 changes: 15 additions & 0 deletions x/auth/ante/testutil/expected_keepers_mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 0 additions & 14 deletions x/auth/tx/gogotx.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,20 +280,6 @@ func intoAnyV1(v2s []*anypb.Any) []*codectypes.Any {
return v1s
}

// decodeMsgsV1 will decode the given messages into
func decodeMsgsV1(cdc codec.BinaryCodec, anyPBs []*anypb.Any) ([]proto.Message, error) {
v1s := make([]proto.Message, len(anyPBs))

for i, anyPB := range anyPBs {
v1, err := decodeFromAny(cdc, anyPB)
if err != nil {
return nil, err
}
v1s[i] = v1
}
return v1s, nil
}

func decodeFromAny(cdc codec.BinaryCodec, anyPB *anypb.Any) (proto.Message, error) {
messageName := anyPB.TypeUrl
if i := strings.LastIndexByte(anyPB.TypeUrl, '/'); i >= 0 {
Expand Down
15 changes: 15 additions & 0 deletions x/staking/testutil/expected_keepers_mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions x/staking/types/expected_keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,5 @@ func (StakingHooksWrapper) IsOnePerModuleType() {}

type ConsensusKeeper interface {
Params(context.Context, *consensustypes.QueryParamsRequest) (*consensustypes.QueryParamsResponse, error)
GetCometInfo(ctx context.Context, _ *consensustypes.QueryGetCometInfoRequest) (*consensustypes.QueryGetCometInfoResponse, error)
}

0 comments on commit 8ebdc82

Please sign in to comment.