lnlink

iOS app for connecting to lightning nodes
git clone git://jb55.com/lnlink
Log | Files | Refs | Submodules | README | LICENSE

commit 32db1914c4a1943ec1450bb6884c16e4f138fe18
parent d98c6e93d8888035f3add6bec224d7bea9c672d4
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 29 Jul 2022 11:17:13 -0700

forgot another thing for the msat purge

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mlightninglink/RPC.swift | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lightninglink/RPC.swift b/lightninglink/RPC.swift @@ -396,13 +396,13 @@ public func rpc_invoice(ln: LNSocket, token: String, amount: InvoiceAmount = .an switch amount { case .amount(let val): - params["msatoshi"] = "\(val)msat" + params["amount_msat"] = "\(val)msat" case .any: - params["msatoshi"] = "any" + params["amount_msat"] = "any" case .min(let val): - params["msatoshi"] = "\(val)msat" + params["amount_msat"] = "\(val)msat" case .range(let min, _): - params["msatoshi"] = "\(min)msat" + params["amount_msat"] = "\(min)msat" } return performRpc(ln: ln, operation: "invoice", authToken: token, timeout_ms: default_timeout, params: params) @@ -435,7 +435,7 @@ public func rpc_fetchinvoice(ln: LNSocket, token: String, req: FetchInvoiceReq) if let pay_amt = req.pay_amt { let amt = pay_amt.amount + (pay_amt.tip ?? 0) - params["msatoshi"] = "\(amt)msat" + params["amount_msat"] = "\(amt)msat" } let timeout = req.timeout ?? 15