enostr: rename to_bech to npub

a bit more clear as to what this is
This commit is contained in:
William Casarin
2025-04-22 10:46:51 -07:00
parent 88aa78dc03
commit ba4198eeec
5 changed files with 5 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ impl NoteContextSelection {
ui.ctx().copy_text(note.content().to_string());
}
NoteContextSelection::CopyPubkey => {
if let Some(bech) = Pubkey::new(*note.pubkey()).to_bech() {
if let Some(bech) = Pubkey::new(*note.pubkey()).npub() {
ui.ctx().copy_text(bech);
}
}