From c8579b99d01d8b738feadd2d9f541daba5230a63 Mon Sep 17 00:00:00 2001 From: niftynei Date: Mon, 24 Aug 2020 13:08:11 -0500 Subject: [PATCH] pyln-proto: use vals for subtype parsing --- contrib/pyln-proto/pyln/proto/message/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pyln-proto/pyln/proto/message/message.py b/contrib/pyln-proto/pyln/proto/message/message.py index 31a1511ba..d7c709fb9 100644 --- a/contrib/pyln-proto/pyln/proto/message/message.py +++ b/contrib/pyln-proto/pyln/proto/message/message.py @@ -305,7 +305,7 @@ other types. Since 'msgtype' is almost identical, it inherits from this too. def read(self, io_in: BufferedIOBase, otherfields: Dict[str, Any]) -> Optional[Dict[str, Any]]: vals = {} for field in self.fields: - val = field.fieldtype.read(io_in, otherfields) + val = field.fieldtype.read(io_in, vals) if val is None: # If first field fails to read, we return None. if field == self.fields[0]: