diff --git a/lnbits/bolt11.py b/lnbits/bolt11.py index 352ceac43..cf2761d1a 100644 --- a/lnbits/bolt11.py +++ b/lnbits/bolt11.py @@ -134,8 +134,8 @@ def encode(options): if options.description: addr.tags.append(("d", options.description)) - if options.description_hashed: - addr.tags.append(("h", options.description_hashed)) + if options.description_hash: + addr.tags.append(("h", options.description_hash)) if options.expires: addr.tags.append(("x", options.expires)) diff --git a/lnbits/wallets/fake.py b/lnbits/wallets/fake.py index c7b577d72..c349b6c49 100644 --- a/lnbits/wallets/fake.py +++ b/lnbits/wallets/fake.py @@ -25,7 +25,7 @@ class FakeWallet(Wallet): self.paymenthash = "" self.privkey = getenv("FAKE_WALLET_KEY") self.memo = "" - self.description_hashed = "" + self.description_hash = "" self.description = "" self.fallback = None self.expires = None @@ -48,7 +48,7 @@ class FakeWallet(Wallet): self.timestamp = datetime.now().timestamp() if description_hash: self.tags_set = {"h"} - self.description_hashed = description_hash.hex() + self.description_hash = description_hash.hex() else: self.tags_set = {"d"} self.memo = memo