From 6bf98b4d3ee0af79ac85b2e28538bb8e0bc29fb1 Mon Sep 17 00:00:00 2001 From: AnthonyLaw Date: Mon, 31 Jul 2023 15:50:54 +0800 Subject: [PATCH] [lightapi/python] build: update python sdk 3.0.11 --- lightapi/python/requirements.txt | 2 +- lightapi/python/symbollightapi/connector/NemConnector.py | 2 +- lightapi/python/symbollightapi/model/Transaction.py | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lightapi/python/requirements.txt b/lightapi/python/requirements.txt index 41557c5cc9..d0de5586de 100644 --- a/lightapi/python/requirements.txt +++ b/lightapi/python/requirements.txt @@ -1,3 +1,3 @@ aiohttp==3.8.5 -symbol-sdk-python==3.0.7 +symbol-sdk-python==3.0.11 zenlog==1.1 diff --git a/lightapi/python/symbollightapi/connector/NemConnector.py b/lightapi/python/symbollightapi/connector/NemConnector.py index c8eceaabaf..3ecf561d03 100644 --- a/lightapi/python/symbollightapi/connector/NemConnector.py +++ b/lightapi/python/symbollightapi/connector/NemConnector.py @@ -148,7 +148,7 @@ def _map_to_transaction(transaction, block_height): specific_args = {} - if TransactionType.MULTISIG_TRANSACTION.value == tx_type: + if TransactionType.MULTISIG.value == tx_type: specific_args = TransactionHandler().map[tx_type](tx_dict, transaction['innerHash']) else: specific_args = TransactionHandler().map[tx_type](tx_dict) diff --git a/lightapi/python/symbollightapi/model/Transaction.py b/lightapi/python/symbollightapi/model/Transaction.py index 356e222b34..70dc50b831 100644 --- a/lightapi/python/symbollightapi/model/Transaction.py +++ b/lightapi/python/symbollightapi/model/Transaction.py @@ -198,7 +198,7 @@ def __init__( timestamp, deadline, signature, - TransactionType.MULTISIG_TRANSACTION.value + TransactionType.MULTISIG.value ) self.signatures = signatures @@ -398,7 +398,7 @@ def __init__(self): TransactionType.TRANSFER.value: self._map_transfer_args, TransactionType.ACCOUNT_KEY_LINK.value: self._map_account_key_link_args, TransactionType.MULTISIG_ACCOUNT_MODIFICATION.value: self._map_multisig_account_modification_args, - TransactionType.MULTISIG_TRANSACTION.value: self._map_multisig_transaction_args, + TransactionType.MULTISIG.value: self._map_multisig_args, TransactionType.NAMESPACE_REGISTRATION.value: self._map_namespace_registration_args, TransactionType.MOSAIC_DEFINITION.value: self._map_mosaic_definition_args, TransactionType.MOSAIC_SUPPLY_CHANGE.value: self._map_mosaic_supply_change_args, @@ -454,7 +454,7 @@ def _map_multisig_account_modification_args(tx_dict): ] } - def _map_multisig_transaction_args(self, tx_dict, inner_hash): + def _map_multisig_args(self, tx_dict, inner_hash): other_transaction = tx_dict['otherTrans'] @@ -550,7 +550,7 @@ def create_transaction(tx_type, common_args, specific_args): TransactionType.TRANSFER.value: TransferTransaction, TransactionType.ACCOUNT_KEY_LINK.value: AccountKeyLinkTransaction, TransactionType.MULTISIG_ACCOUNT_MODIFICATION.value: MultisigAccountModificationTransaction, - TransactionType.MULTISIG_TRANSACTION.value: MultisigTransaction, + TransactionType.MULTISIG.value: MultisigTransaction, TransactionType.NAMESPACE_REGISTRATION.value: NamespaceRegistrationTransaction, TransactionType.MOSAIC_DEFINITION.value: MosaicDefinitionTransaction, TransactionType.MOSAIC_SUPPLY_CHANGE.value: MosaicSupplyChangeTransaction,