Skip to content

Commit

Permalink
fix: from_pk_str error typo
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Jul 22, 2023
1 parent 7abee85 commit af40d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/nostr/src/key/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ impl FromPkStr for Keys {
Ok(public_key) => Ok(Self::from_public_key(public_key)),
Err(_) => match XOnlyPublicKey::from_bech32(public_key) {
Ok(public_key) => Ok(Self::from_public_key(public_key)),
Err(_) => Err(Error::InvalidSecretKey),
Err(_) => Err(Error::InvalidPublicKey),
},
}
}
Expand Down

0 comments on commit af40d26

Please sign in to comment.