Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Dec 19, 2024
1 parent 09d83b7 commit 87b971a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
3 changes: 1 addition & 2 deletions server/v2/cometbft/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
cryptoenc "github.com/cometbft/cometbft/crypto/encoding"
protoio "github.com/cosmos/gogoproto/io"
"github.com/cosmos/gogoproto/proto"
gogoproto "github.com/cosmos/gogoproto/proto"
gogoany "github.com/cosmos/gogoproto/types/any"
"google.golang.org/grpc/codes"
Expand Down Expand Up @@ -516,7 +515,7 @@ func ValidateVoteExtensions[T transaction.Tx](
return nil
}

marshalDelimitedFn := func(msg proto.Message) ([]byte, error) {
marshalDelimitedFn := func(msg gogoproto.Message) ([]byte, error) {
var buf bytes.Buffer
if err := protoio.NewDelimitedWriter(&buf).WriteMsg(msg); err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/v2/accounts/lockup/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (s *IntegrationTestSuite) setupStakingParams(ctx context.Context, sk *staki
require.NoError(s.T(), err)

// update unbonding time
params.UnbondingTime = time.Duration(time.Second * 10)
params.UnbondingTime = time.Second * 10
err = sk.Params.Set(ctx, params)
require.NoError(s.T(), err)
}
8 changes: 4 additions & 4 deletions tests/integration/v2/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ type StartupConfig struct {
GasService gas.Service
}

func DefaultStartUpConfig(t testing.TB) StartupConfig {
t.Helper()
func DefaultStartUpConfig(tb testing.TB) StartupConfig {
tb.Helper()

priv := secp256k1.GenPrivKey()
ba := authtypes.NewBaseAccount(
Expand All @@ -120,8 +120,8 @@ func DefaultStartUpConfig(t testing.TB) StartupConfig {
sdk.NewCoin(sdk.DefaultBondDenom, sdkmath.NewInt(100000000000000)),
),
}
homedir := t.TempDir()
t.Logf("generated integration test app config; HomeDir=%s", homedir)
homedir := tb.TempDir()
tb.Logf("generated integration test app config; HomeDir=%s", homedir)
return StartupConfig{
ValidatorSet: CreateRandomValidatorSet,
GenesisBehavior: Genesis_COMMIT,
Expand Down
6 changes: 2 additions & 4 deletions tests/integration/v2/staking/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"cosmossdk.io/depinject"
"cosmossdk.io/log"
"cosmossdk.io/math"
storetypes "cosmossdk.io/store/types"
_ "cosmossdk.io/x/accounts" // import as blank for app wiring
_ "cosmossdk.io/x/bank" // import as blank for app wiring
bankkeeper "cosmossdk.io/x/bank/keeper"
Expand Down Expand Up @@ -45,9 +44,8 @@ var (
type fixture struct {
app *integration.App

ctx context.Context
cdc codec.Codec
keys map[string]*storetypes.KVStoreKey
ctx context.Context
cdc codec.Codec

queryClient stakingkeeper.Querier

Expand Down

0 comments on commit 87b971a

Please sign in to comment.