libplugin: quick fix for bad JSON produced by plugins on bad paramters.

Internally libplugin turns ' into ", which causes these messages to produce
bad JSON.

The real fix is to remove the '->" convenience substitution and port the
JSON creation APIs into common/ from lightningd/

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-01-20 14:03:32 +10:30
committed by Christian Decker
parent 28699f0eca
commit ba8a9d1fde
2 changed files with 6 additions and 3 deletions

View File

@@ -116,3 +116,6 @@ def test_pay_plugin(node_factory):
res = l1.rpc.pay(bolt11=inv['bolt11'])
assert res['status'] == 'complete'
with pytest.raises(RpcError, match=r'missing required parameter'):
l1.rpc.call('pay')