From d09f42542b62592293dc3e3a0efc2b894ce96e38 Mon Sep 17 00:00:00 2001 From: AnthonyLaw Date: Fri, 15 Sep 2023 03:47:31 +0800 Subject: [PATCH] [lightapi/python] fix: Handle none in transfer message and relativeChange in multisig account modification --- lightapi/python/symbollightapi/model/Transaction.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lightapi/python/symbollightapi/model/Transaction.py b/lightapi/python/symbollightapi/model/Transaction.py index 70dc50b83..aef370cab 100644 --- a/lightapi/python/symbollightapi/model/Transaction.py +++ b/lightapi/python/symbollightapi/model/Transaction.py @@ -413,6 +413,8 @@ def _map_transfer_args(tx_dict): message['payload'], message['type'] ) + else: + message = None mosaics = None if 'mosaics' in tx_dict: @@ -441,7 +443,7 @@ def _map_account_key_link_args(tx_dict): @staticmethod def _map_multisig_account_modification_args(tx_dict): min_cosignatories = 0 - if 'minCosignatories' in tx_dict: + if 'minCosignatories' in tx_dict and 'relativeChange' in tx_dict['minCosignatories']: min_cosignatories = tx_dict['minCosignatories']['relativeChange'] return {