Skip to content

Commit

Permalink
fix proto pubkey regisiter name (#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkxkd0159 committed Mar 4, 2024
1 parent 94fd19d commit fc54d22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crypto/encoding/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
)

func init() {
json.RegisterType((*pc.PublicKey)(nil), "ostracon.crypto.PublicKey")
json.RegisterType((*pc.PublicKey_Ed25519)(nil), "ostracon.crypto.PublicKey_Ed25519")
json.RegisterType((*pc.PublicKey_Secp256K1)(nil), "ostracon.crypto.PublicKey_Secp256K1")
json.RegisterType((*pc.PublicKey)(nil), "tendermint.crypto.PublicKey")
json.RegisterType((*pc.PublicKey_Ed25519)(nil), "tendermint.crypto.PublicKey_Ed25519")
json.RegisterType((*pc.PublicKey_Secp256K1)(nil), "tendermint.crypto.PublicKey_Secp256K1")
}

// PubKeyToProto takes crypto.PubKey and transforms it to a protobuf Pubkey
Expand Down

0 comments on commit fc54d22

Please sign in to comment.