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

@@ -348,7 +348,7 @@ impl PostBuffer {
for (cur_end_ind, mention_ind) in self.mention_ends.iter().rev() {
if let Some(info) = self.mentions.get(mention_ind) {
if let MentionType::Finalized(pk) = info.mention_type {
if let Some(bech) = pk.to_bech() {
if let Some(bech) = pk.npub() {
if let Some(byte_range) =
char_indices_to_byte(&out, info.start_index..*cur_end_ind)
{