From 7e217141ea4483d24a2295415ff9b9b3948c043b Mon Sep 17 00:00:00 2001 From: dbth <1097224+believethehype@users.noreply.github.com> Date: Sat, 1 Feb 2025 19:35:45 +0100 Subject: [PATCH] Update zap_utils.py --- nostr_dvm/utils/zap_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nostr_dvm/utils/zap_utils.py b/nostr_dvm/utils/zap_utils.py index 726161f..4ef3a85 100644 --- a/nostr_dvm/utils/zap_utils.py +++ b/nostr_dvm/utils/zap_utils.py @@ -193,10 +193,10 @@ def pay_bolt11_ln_bits(bolt11: str, config): def check_for_zapplepay(pubkey_hex: str, content: str): try: # Special case Zapplepay - if (pubkey_hex == PublicKey.from_bech32("npub1wxl6njlcgygduct7jkgzrvyvd9fylj4pqvll6p32h59wyetm5fxqjchcan") + if (pubkey_hex == PublicKey.parse("npub1wxl6njlcgygduct7jkgzrvyvd9fylj4pqvll6p32h59wyetm5fxqjchcan") .to_hex()): real_sender_bech32 = content.replace("From: nostr:", "") - pubkey_hex = PublicKey.from_bech32(real_sender_bech32).to_hex() + pubkey_hex = PublicKey.parse(real_sender_bech32).to_hex() return pubkey_hex except Exception as e: