From 19c231a2f4a9dbcfbdcba65ecbb982e4ce244d38 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 30 Jul 2024 18:04:28 +0200 Subject: [PATCH] chore: update pyln-client to 24.5 (#2614) --- lnbits/wallets/corelightning.py | 2 +- poetry.lock | 10 +++++----- pyproject.toml | 2 +- tests/wallets/fixtures/json/fixtures_rpc.json | 10 +++++----- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lnbits/wallets/corelightning.py b/lnbits/wallets/corelightning.py index 8bc7096f8..c759a1580 100644 --- a/lnbits/wallets/corelightning.py +++ b/lnbits/wallets/corelightning.py @@ -101,7 +101,7 @@ class CoreLightningWallet(Wallet): if unhashed_description and not self.supports_description_hash: raise UnsupportedError("unhashed_description") r: dict = self.ln.invoice( # type: ignore - msatoshi=msat, + amount_msat=msat, label=label, description=( unhashed_description.decode() if unhashed_description else memo diff --git a/poetry.lock b/poetry.lock index af65579a5..7453d1aa4 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1882,13 +1882,13 @@ files = [ [[package]] name = "pyln-client" -version = "23.8" +version = "24.5" description = "Client library and plugin library for Core Lightning" optional = false -python-versions = ">=3.8,<4.0" +python-versions = "<4.0,>=3.8" files = [ - {file = "pyln_client-23.8-py3-none-any.whl", hash = "sha256:a63a9541f422ed3d1d42483a5f37cdfa0014715b620616384d8ee048c4f95f42"}, - {file = "pyln_client-23.8.tar.gz", hash = "sha256:578004c640d869707ed8de267f35e01994c092035d20ebc5a325415412b52021"}, + {file = "pyln_client-24.5-py3-none-any.whl", hash = "sha256:b1c7fc8644c0668472ba9cc5d45b6fe88f44bae396f624f0b1a09695011fce0d"}, + {file = "pyln_client-24.5.tar.gz", hash = "sha256:642af007f4b0ea75f7c1771b7a4563acf858e0e761023d84b7f61fef13cf3888"}, ] [package.dependencies] @@ -3000,4 +3000,4 @@ liquid = ["wallycore"] [metadata] lock-version = "2.0" python-versions = "^3.10 | ^3.9" -content-hash = "9b454ce12bf270bdd2c950a4fdd0e69048cd5e6d5357d14d826443e64409344f" +content-hash = "3795e179851835839e5f89f51704309942915386a67a00b7c9408ff78b4fea41" diff --git a/pyproject.toml b/pyproject.toml index 5faa652d9..f1bf50775 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ websockets = "11.0.3" loguru = "0.7.2" grpcio = "1.62.2" protobuf = "4.24.3" -pyln-client = "23.8" +pyln-client = "24.5" pywebpush = "1.14.0" slowapi = "0.1.9" websocket-client = "1.6.3" diff --git a/tests/wallets/fixtures/json/fixtures_rpc.json b/tests/wallets/fixtures/json/fixtures_rpc.json index e7e680794..b1855227a 100644 --- a/tests/wallets/fixtures/json/fixtures_rpc.json +++ b/tests/wallets/fixtures/json/fixtures_rpc.json @@ -378,7 +378,7 @@ "expiry": null, "exposeprivatechannels": true, "label": "test-label", - "msatoshi": 555000 + "amount_msat": 555000 } }, "response_type": "json", @@ -470,7 +470,7 @@ "expiry": null, "exposeprivatechannels": true, "label": "test-label", - "msatoshi": 555000 + "amount_msat": 555000 } }, "response_type": "exception", @@ -491,7 +491,7 @@ "expiry": null, "exposeprivatechannels": true, "label": "test-label", - "msatoshi": 555000 + "amount_msat": 555000 } }, "response_type": "json", @@ -559,7 +559,7 @@ "expiry": null, "exposeprivatechannels": true, "label": "test-label", - "msatoshi": 555000 + "amount_msat": 555000 } }, "response_type": "json", @@ -601,7 +601,7 @@ "expiry": null, "exposeprivatechannels": true, "label": "test-label", - "msatoshi": 555000 + "amount_msat": 555000 } }, "response_type": "exception",