diff --git a/cli/commands/server/start.go b/cli/commands/server/start.go index 613f77e8d1..19fe168c90 100644 --- a/cli/commands/server/start.go +++ b/cli/commands/server/start.go @@ -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" @@ -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) diff --git a/testing/e2e/e2e_staking_test.go b/testing/e2e/e2e_staking_test.go index dc3f594497..f7d15813e5 100644 --- a/testing/e2e/e2e_staking_test.go +++ b/testing/e2e/e2e_staking_test.go @@ -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)