chore: update lnurl lib to v0.8.0 (#102)

This commit is contained in:
dni ⚡ 2025-08-21 17:15:17 +02:00 committed by GitHub
commit e48be221b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 2356 additions and 574 deletions

View file

@ -132,11 +132,8 @@ def decode(hrp, addr):
return (None, None)
if data[0] == 0 and len(decoded) != 20 and len(decoded) != 32:
return (None, None)
if (
data[0] == 0
and spec != Encoding.BECH32
or data[0] != 0
and spec != Encoding.BECH32M
if (data[0] == 0 and spec != Encoding.BECH32) or (
data[0] != 0 and spec != Encoding.BECH32M
):
return (None, None)
return (data[0], decoded)