This commit is contained in:
Tiago vasconcelos 2021-12-01 11:11:51 +00:00
parent 346e50cbb5
commit 205c53d8e9

View File

@ -52,7 +52,6 @@ class Addresses(BaseModel):
async def lnurlpay_metadata(self, domain) -> LnurlPayMetadata: async def lnurlpay_metadata(self, domain) -> LnurlPayMetadata:
text = f"Payment to {self.username}" text = f"Payment to {self.username}"
identifier = f"{self.username}@{domain}" identifier = f"{self.username}@{domain}"
metadata = [["text/plain", text], ["text/identifier"], identifier] metadata = [["text/plain", text], ["text/identifier", identifier]]
print(json.dumps(metadata))
return LnurlPayMetadata(json.dumps(metadata)) return LnurlPayMetadata(json.dumps(metadata))