cln-rpc: The JSON `number` type is a float not an int

Got some issues parsing dates for example.
This commit is contained in:
Christian Decker 2022-04-01 14:43:34 +10:30 committed by Rusty Russell
parent ecda4f717f
commit d5f7548c8f
2 changed files with 2 additions and 2 deletions

View File

@ -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',

View File

@ -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',