Skip to content

Commit

Permalink
[lightapi/python] fix: Handle none in transfer message and relativeCh…
Browse files Browse the repository at this point in the history
…ange in multisig account modification
  • Loading branch information
AnthonyLaw committed Oct 4, 2023
1 parent f084990 commit d09f425
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lightapi/python/symbollightapi/model/Transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,8 @@ def _map_transfer_args(tx_dict):
message['payload'],
message['type']
)
else:
message = None

mosaics = None
if 'mosaics' in tx_dict:
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit d09f425

Please sign in to comment.