From 83af45a5b931c9cabd72f2b4af04e7b5ff4a707c Mon Sep 17 00:00:00 2001 From: j75689 Date: Thu, 12 Jan 2023 17:11:17 +0800 Subject: [PATCH] fix: String() for PubKeySecp256k1 --- crypto/secp256k1/secp256k1.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/secp256k1/secp256k1.go b/crypto/secp256k1/secp256k1.go index 78d4ba9f4..b28ebe17f 100644 --- a/crypto/secp256k1/secp256k1.go +++ b/crypto/secp256k1/secp256k1.go @@ -207,7 +207,7 @@ func (pubKey PubKeySecp256k1) Address() crypto.Address { } func (pubKey PubKeySecp256k1) String() string { - return fmt.Sprintf("PubKeySecp256k1{%X}", pubKey[:]) + return fmt.Sprintf("PubKeySecp256k1{%X}", pubKey.Bytes()) } // Bytes returns the pubkey marshaled with amino encoding.