Skip to content

Commit

Permalink
fix minor lints
Browse files Browse the repository at this point in the history
  • Loading branch information
fridrik01 committed Dec 19, 2024
1 parent a040a60 commit 4eedd80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cli/commands/server/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package server

import (
"context"
"fmt"
"errors"

pruningtypes "cosmossdk.io/store/pruning/types"
types "github.com/berachain/beacon-kit/cli/commands/server/types"
Expand Down Expand Up @@ -108,7 +108,7 @@ custom: allow pruning options to be manually specified through 'pruning-keep-rec
logger := clicontext.GetLoggerFromCmd[LoggerT](cmd)
cfg := clicontext.GetConfigFromCmd(cmd)
if cfg.Consensus.TimeoutCommit == 0 {
return fmt.Errorf("please edit your config.toml file and set timeout_commit to 1s")
return errors.New("please edit your config.toml file and set timeout_commit to 1s")
}

v := clicontext.GetViperFromCmd(cmd)
Expand Down
6 changes: 4 additions & 2 deletions testing/e2e/e2e_staking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,20 @@ func (s *BeaconKitE2ESuite) TestDepositRobustness() {
// Create a deposit transaction. Use the default validators' pubkeys
// if exists, otherwise pubkey is a random 48 byte slice.
var pubkey []byte
var pk *bls12381.PubKey

switch i {
case 0:
pubkey, err = client.GetPubKey(s.Ctx())
s.Require().NoError(err)
pk, err := bls12381.NewPublicKeyFromBytes(pubkey)
pk, err = bls12381.NewPublicKeyFromBytes(pubkey)
s.Require().NoError(err)
pubkey = pk.Compress()
s.Require().Len(pubkey, 48)
case 1:
pubkey, err = client2.GetPubKey(s.Ctx())
s.Require().NoError(err)
pk, err := bls12381.NewPublicKeyFromBytes(pubkey)
pk, err = bls12381.NewPublicKeyFromBytes(pubkey)
s.Require().NoError(err)
pubkey = pk.Compress()
s.Require().Len(pubkey, 48)
Expand Down

0 comments on commit 4eedd80

Please sign in to comment.