diff --git a/client/rpc/status.go b/client/rpc/status.go index b45fcb0c59..edf2be748b 100644 --- a/client/rpc/status.go +++ b/client/rpc/status.go @@ -47,10 +47,13 @@ func StatusCommand() *cobra.Command { return err } + var pk cryptotypes.PubKey // `status` has TM pubkeys, we need to convert them to our pubkeys. - pk, err := cryptocodec.FromTmPubKeyInterface(status.ValidatorInfo.PubKey) - if err != nil { - return err + if status.ValidatorInfo.PubKey != nil { + pk, err = cryptocodec.FromTmPubKeyInterface(status.ValidatorInfo.PubKey) + if err != nil { + return err + } } statusWithPk := resultStatus{ NodeInfo: status.NodeInfo, diff --git a/store/tools/ics23/go.mod b/store/tools/ics23/go.mod index 9f2e5cad10..a41b3567c6 100644 --- a/store/tools/ics23/go.mod +++ b/store/tools/ics23/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( github.com/confio/ics23/go v0.7.0 github.com/cosmos/cosmos-sdk v0.46.0-rc3 - github.com/cosmos/iavl v0.19.0 + github.com/cosmos/iavl v0.18.0 github.com/lazyledger/smt v0.2.1-0.20210709230900-03ea40719554 github.com/tendermint/tendermint v0.34.20-rc1 github.com/tendermint/tm-db v0.6.7