mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
lightningd: change msatoshi args to amount_msat.
This is consistent with our output changes, and increases consistency. It also keeps future sanity checks happy, that we only use JSON msat helpers with '_msat' fields. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Changed: JSON-RPC: `invoice`, `sendonion`, `sendpay`, `pay`, `keysend`, `fetchinvoice`, `sendinvoice`: `msatoshi` argument is now called `amount_msat` to match other fields. Changelog-Deprecated: JSON-RPC: `invoice`, `sendonion`, `sendpay`, `pay`, `keysend`, `fetchinvoice`, `sendinvoice` `msatoshi` (use `amount_msat`)
This commit is contained in:
@@ -2074,7 +2074,7 @@ def test_unicode_rpc(node_factory, executor, bitcoind):
|
||||
node = node_factory.get_node()
|
||||
desc = "Some candy 🍬 and a nice glass of milk 🥛."
|
||||
|
||||
node.rpc.invoice(msatoshi=42, label=desc, description=desc)
|
||||
node.rpc.invoice(amount_msat=42, label=desc, description=desc)
|
||||
invoices = node.rpc.listinvoices()['invoices']
|
||||
assert(len(invoices) == 1)
|
||||
assert(invoices[0]['description'] == desc)
|
||||
|
||||
Reference in New Issue
Block a user