We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3110d20 commit 06dd931Copy full SHA for 06dd931
contrib/pyln-client/pyln/client/lightning.py
@@ -503,7 +503,8 @@ def replace_amounts(obj):
503
"""
504
if isinstance(obj, dict):
505
for k, v in obj.items():
506
- if k.endswith('msat'):
+ # Objects ending in msat are not treated specially!
507
+ if k.endswith('msat') and not isinstance(v, dict):
508
if isinstance(v, list):
509
obj[k] = [Millisatoshi(e) for e in v]
510
# FIXME: Deprecated "listconfigs" gives two 'null' fields:
0 commit comments