Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
fix: String() for PubKeySecp256k1
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Jan 12, 2023
1 parent 5742672 commit 83af45a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/secp256k1/secp256k1.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 83af45a

Please sign in to comment.