nwcprovider/tests
Patrick Mulligan bf55b46f76
Some checks failed
Tests / test (push) Has been cancelled
fix: accept null optional params in make_invoice and list_transactions
Clients may send optional params as an explicit JSON null rather than
omitting them; Amethyst does for description, description_hash and
expiry. dict.get only applies its default for a missing key, so
description arrived as None and make_invoice failed with
"'NoneType' object has no attribute 'encode'".

Coerce with `or` instead, pass no unhashed_description when the
description is blank, and apply the same to list_transactions' paging
params, which had the same exposure.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Tbyw6FwjhEJg3gHfPHxWt
2026-09-14 22:25:35 +02:00
..
integration fix: run integration relay as runner user 2026-08-26 21:54:44 +02:00
unit fix: accept null optional params in make_invoice and list_transactions 2026-09-14 22:25:35 +02:00
__init__.py fix: use lnbits linting, change to uv (#9) 2025-09-12 09:30:16 +02:00