Replaced rustys hashed for hash

This commit is contained in:
Ben Arc 2022-02-01 20:22:02 +00:00
parent 31e300e05b
commit 615abffeb4
2 changed files with 4 additions and 4 deletions

View File

@ -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))

View File

@ -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