mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-06-23 05:31:02 +02:00
Update zap_utils.py
This commit is contained in:
parent
f9b68d3b6d
commit
7e217141ea
@ -193,10 +193,10 @@ def pay_bolt11_ln_bits(bolt11: str, config):
|
|||||||
def check_for_zapplepay(pubkey_hex: str, content: str):
|
def check_for_zapplepay(pubkey_hex: str, content: str):
|
||||||
try:
|
try:
|
||||||
# Special case Zapplepay
|
# Special case Zapplepay
|
||||||
if (pubkey_hex == PublicKey.from_bech32("npub1wxl6njlcgygduct7jkgzrvyvd9fylj4pqvll6p32h59wyetm5fxqjchcan")
|
if (pubkey_hex == PublicKey.parse("npub1wxl6njlcgygduct7jkgzrvyvd9fylj4pqvll6p32h59wyetm5fxqjchcan")
|
||||||
.to_hex()):
|
.to_hex()):
|
||||||
real_sender_bech32 = content.replace("From: nostr:", "")
|
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
|
return pubkey_hex
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user