fix schema so payments can be sent between lnbits wallets.

This commit is contained in:
fiatjaf
2019-12-16 16:23:06 +00:00
parent 377243b9cb
commit ce94fc8984
3 changed files with 10 additions and 9 deletions
+2 -2
View File
@@ -49,9 +49,9 @@ def decode(pr: str) -> Invoice:
if tag == "d":
invoice.description = trim_to_bytes(tagdata).decode("utf-8")
elif tag == "h" and data_length == 52:
invoice.description = str(hexlify(trim_to_bytes(tagdata)))
invoice.description = hexlify(trim_to_bytes(tagdata)).decode('ascii')
elif tag == "p" and data_length == 52:
invoice.payment_hash = str(hexlify(trim_to_bytes(tagdata)))
invoice.payment_hash = hexlify(trim_to_bytes(tagdata)).decode('ascii')
return invoice