Skip to content

Commit dc36f72

Browse files
committed
register missing PubKey
1 parent dac16dd commit dc36f72

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cmd/query/account.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import (
55
"encoding/hex"
66
"encoding/json"
77
"fmt"
8+
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1"
9+
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256r1"
810
"io"
911
"math/big"
1012
"net/http"
@@ -132,6 +134,16 @@ func GetQueryAccountCommand() *cobra.Command {
132134
(*cryptotypes.PubKey)(nil),
133135
&ethsecp256k1.PubKey{},
134136
)
137+
ir.RegisterInterface(
138+
"cosmos.crypto.secp256k1.PubKey",
139+
(*cryptotypes.PubKey)(nil),
140+
&secp256k1.PubKey{},
141+
)
142+
ir.RegisterInterface(
143+
"cosmos.crypto.secp256r1.PubKey",
144+
(*cryptotypes.PubKey)(nil),
145+
&secp256r1.PubKey{},
146+
)
135147
cdc := sdkcodec.NewProtoCodec(ir)
136148

137149
var account exported.VestingAccount

0 commit comments

Comments
 (0)