Skip to content

Commit

Permalink
fix public_key.rs to_any function (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaviRain-Su authored May 29, 2023
1 parent 91070b7 commit aef5c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmrs/src/crypto/public_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl PublicKey {
/// Convert this [`PublicKey`] to a Protobuf [`Any`] type.
pub fn to_any(&self) -> Result<Any> {
let value = match self.0 {
tendermint::PublicKey::Ed25519(_) => proto::cosmos::crypto::secp256k1::PubKey {
tendermint::PublicKey::Ed25519(_) => proto::cosmos::crypto::ed25519::PubKey {
key: self.to_bytes(),
}
.to_bytes()?,
Expand Down

0 comments on commit aef5c70

Please sign in to comment.