mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
cln-rpc: The JSON number type is a float not an int
Got some issues parsing dates for example.
This commit is contained in:
committed by
Rusty Russell
parent
ecda4f717f
commit
d5f7548c8f
@@ -12,7 +12,7 @@ typemap = {
|
||||
'msat': 'Amount',
|
||||
'msat_or_all': 'AmountOrAll',
|
||||
'msat_or_any': 'AmountOrAny',
|
||||
'number': 'sint64',
|
||||
'number': 'double',
|
||||
'pubkey': 'bytes',
|
||||
'short_channel_id': 'string',
|
||||
'signature': 'bytes',
|
||||
|
||||
@@ -35,7 +35,7 @@ typemap = {
|
||||
'msat': 'Amount',
|
||||
'msat_or_all': 'AmountOrAll',
|
||||
'msat_or_any': 'AmountOrAny',
|
||||
'number': 'i64',
|
||||
'number': 'f64',
|
||||
'pubkey': 'Pubkey',
|
||||
'short_channel_id': 'ShortChannelId',
|
||||
'signature': 'String',
|
||||
|
||||
Reference in New Issue
Block a user