mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-05 19:22:34 +02:00
Update lndgrpc.py
This commit is contained in:
@@ -25,7 +25,7 @@ class LndWallet(Wallet):
|
|||||||
grpc_port = self.port
|
grpc_port = self.port
|
||||||
)
|
)
|
||||||
|
|
||||||
def create_invoice(self, amount: int, mem: str = "") -> InvoiceResponse:
|
def create_invoice(self, amount: int, memo: str = "") -> InvoiceResponse:
|
||||||
|
|
||||||
lnd_rpc = lnd_grpc.Client(
|
lnd_rpc = lnd_grpc.Client(
|
||||||
lnd_dir = None,
|
lnd_dir = None,
|
||||||
@@ -37,7 +37,7 @@ class LndWallet(Wallet):
|
|||||||
)
|
)
|
||||||
|
|
||||||
lndResponse = lnd_rpc.add_invoice(
|
lndResponse = lnd_rpc.add_invoice(
|
||||||
memo = mem,
|
memo = memo,
|
||||||
value = amount,
|
value = amount,
|
||||||
expiry = 600,
|
expiry = 600,
|
||||||
private = True
|
private = True
|
||||||
|
Reference in New Issue
Block a user