evade lnurl encoding error for withdraw_full QR on localhost.
This commit is contained in:
parent
2aa4a93da1
commit
b55cc82f1c
2 changed files with 9 additions and 6 deletions
|
|
@ -52,7 +52,10 @@ class Wallet(NamedTuple):
|
||||||
wal=self.id,
|
wal=self.id,
|
||||||
_external=True,
|
_external=True,
|
||||||
)
|
)
|
||||||
|
try:
|
||||||
return lnurl_encode(url)
|
return lnurl_encode(url)
|
||||||
|
except:
|
||||||
|
return ""
|
||||||
|
|
||||||
def lnurlauth_key(self, domain: str) -> SigningKey:
|
def lnurlauth_key(self, domain: str) -> SigningKey:
|
||||||
hashing_key = hashlib.sha256(self.id.encode("utf-8")).digest()
|
hashing_key = hashlib.sha256(self.id.encode("utf-8")).digest()
|
||||||
|
|
|
||||||
|
|
@ -231,11 +231,9 @@
|
||||||
<q-list>
|
<q-list>
|
||||||
{% include "core/_api_docs.html" %}
|
{% include "core/_api_docs.html" %}
|
||||||
<q-separator></q-separator>
|
<q-separator></q-separator>
|
||||||
<q-expansion-item
|
|
||||||
group="extras"
|
{% if wallet.lnurlwithdraw_full %}
|
||||||
icon="crop_free"
|
<q-expansion-item group="extras" icon="crop_free" label="Drain Funds">
|
||||||
label="Drain Funds"
|
|
||||||
>
|
|
||||||
<q-card>
|
<q-card>
|
||||||
<q-card-section class="text-center">
|
<q-card-section class="text-center">
|
||||||
<p>
|
<p>
|
||||||
|
|
@ -257,6 +255,8 @@
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-expansion-item>
|
</q-expansion-item>
|
||||||
<q-separator></q-separator>
|
<q-separator></q-separator>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<q-expansion-item
|
<q-expansion-item
|
||||||
group="extras"
|
group="extras"
|
||||||
icon="settings_cell"
|
icon="settings_cell"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue