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

@@ -152,7 +152,7 @@ impl<'a, 'd> ProfileView<'a, 'd> {
);
if ui.add(copy_key_widget(&pfp_rect)).clicked() {
let to_copy = if let Some(bech) = self.pubkey.to_bech() {
let to_copy = if let Some(bech) = self.pubkey.npub() {
bech
} else {
error!("Could not convert Pubkey to bech");