diff --git a/cmd/cronosd/cmd/root.go b/cmd/cronosd/cmd/root.go index 82beda0f3e..d08521dd77 100644 --- a/cmd/cronosd/cmd/root.go +++ b/cmd/cronosd/cmd/root.go @@ -42,6 +42,7 @@ import ( "github.com/evmos/ethermint/crypto/hd" ethermintserver "github.com/evmos/ethermint/server" servercfg "github.com/evmos/ethermint/server/config" + srvflags "github.com/evmos/ethermint/server/flags" ethermint "github.com/evmos/ethermint/types" memiavlcfg "github.com/crypto-org-chain/cronos/store/config" @@ -193,6 +194,10 @@ func initRootCmd( e2eecli.E2EECommand(), ) + rootCmd, err := srvflags.AddGlobalFlags(rootCmd) + if err != nil { + panic(err) + } // add rosetta rootCmd.AddCommand(rosettaCmd.RosettaCommand(encodingConfig.InterfaceRegistry, encodingConfig.Codec)) } diff --git a/integration_tests/test_e2ee.py b/integration_tests/test_e2ee.py index c1d8a1ace8..1912ccc77d 100644 --- a/integration_tests/test_e2ee.py +++ b/integration_tests/test_e2ee.py @@ -1,7 +1,9 @@ def test_register(cronos): cli = cronos.cosmos_cli() pubkey0 = cli.keygen(keyring_name="key0") - cli.register_e2ee_key(pubkey0 + "malformed", _from="validator") + rsp = cli.register_e2ee_key(pubkey0 + "malformed", _from="validator") + assert rsp["code"] != 0 + assert "malformed recipient" in rsp["raw_log"] assert not cli.query_e2ee_key(cli.address("validator"))