Skip to content

Commit

Permalink
[lightapi/python] task: set minCosignatories to 0 if properties not e…
Browse files Browse the repository at this point in the history
…xist
  • Loading branch information
AnthonyLaw committed Jul 23, 2023
1 parent 44cab1d commit 7ef69c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lightapi/python/symbollightapi/model/Transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,12 @@ 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:
min_cosignatories = tx_dict['minCosignatories']['relativeChange']

return {
'min_cosignatories': tx_dict['minCosignatories']['relativeChange'],
'min_cosignatories': min_cosignatories,
'modifications': [
Modification(
modification['modificationType'],
Expand Down

0 comments on commit 7ef69c2

Please sign in to comment.