mirror of
https://github.com/lnbits/lnbits.git
synced 2025-03-30 04:32:01 +02:00
fix hexlify bytes -> str.
This commit is contained in:
parent
463ee21c9f
commit
1812b4a803
@ -49,9 +49,9 @@ def decode(pr: str) -> Invoice:
|
|||||||
if tag == "d":
|
if tag == "d":
|
||||||
invoice.description = trim_to_bytes(tagdata).decode("utf-8")
|
invoice.description = trim_to_bytes(tagdata).decode("utf-8")
|
||||||
elif tag == "h" and data_length == 52:
|
elif tag == "h" and data_length == 52:
|
||||||
invoice.description = hexlify(trim_to_bytes(tagdata))
|
invoice.description = str(hexlify(trim_to_bytes(tagdata)))
|
||||||
elif tag == "p" and data_length == 52:
|
elif tag == "p" and data_length == 52:
|
||||||
invoice.payment_hash = hexlify(trim_to_bytes(tagdata))
|
invoice.payment_hash = str(hexlify(trim_to_bytes(tagdata)))
|
||||||
|
|
||||||
return invoice
|
return invoice
|
||||||
|
|
||||||
|
@ -72,31 +72,32 @@
|
|||||||
<i class="ion ion-flash"></i>
|
<i class="ion ion-flash"></i>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- ./col -->
|
|
||||||
|
|
||||||
<!-- /.row -->
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-3">
|
|
||||||
<button
|
|
||||||
onclick="sendfundsinput()"
|
|
||||||
class="btn btn-block btn-primary btn-lg"
|
|
||||||
>
|
|
||||||
Send
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-3">
|
|
||||||
<button
|
|
||||||
onclick="receive()"
|
|
||||||
class="btn btn-block btn-primary btn-lg"
|
|
||||||
>
|
|
||||||
Receive
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- ./col -->
|
||||||
|
|
||||||
<div id="receive"></div>
|
<!-- /.row -->
|
||||||
<div id="sendfunds"></div>
|
<div class="row">
|
||||||
|
<div class="col-sm-3">
|
||||||
|
<button
|
||||||
|
onclick="sendfundsinput()"
|
||||||
|
class="btn btn-block btn-primary btn-lg"
|
||||||
|
>
|
||||||
|
Send
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-3">
|
||||||
|
<button onclick="receive()" class="btn btn-block btn-primary btn-lg">
|
||||||
|
Receive
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-12">
|
||||||
|
<div id="receive"></div>
|
||||||
|
<div id="sendfunds"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user