From 79ab346afd32a7ffc03dc872833cbb6b09b3f5ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Fri, 20 Sep 2024 11:45:13 +0300 Subject: [PATCH] Fix issue cost for registering dynamic NFTs. --- .../token_management_transactions_factory.py | 4 ++-- .../token_management_transactions_factory_test.py | 4 ++-- .../transaction_events_parser_test.py | 6 +++--- pyproject.toml | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/multiversx_sdk/core/transactions_factories/token_management_transactions_factory.py b/multiversx_sdk/core/transactions_factories/token_management_transactions_factory.py index 062ca9c9..5a7bdeab 100644 --- a/multiversx_sdk/core/transactions_factories/token_management_transactions_factory.py +++ b/multiversx_sdk/core/transactions_factories/token_management_transactions_factory.py @@ -942,7 +942,7 @@ def create_transaction_for_registering_dynamic_token(self, config=self._config, sender=sender, receiver=self._config.esdt_contract_address, - amount=None, + amount=self._config.issue_cost, gas_limit=self._config.gas_limit_register_dynamic, add_data_movement_gas=True, data_parts=parts @@ -964,7 +964,7 @@ def create_transaction_for_registering_dynamic_and_setting_roles(self, config=self._config, sender=sender, receiver=self._config.esdt_contract_address, - amount=None, + amount=self._config.issue_cost, gas_limit=self._config.gas_limit_register_dynamic, add_data_movement_gas=True, data_parts=parts diff --git a/multiversx_sdk/core/transactions_factories/token_management_transactions_factory_test.py b/multiversx_sdk/core/transactions_factories/token_management_transactions_factory_test.py index d139e51d..d91363f7 100644 --- a/multiversx_sdk/core/transactions_factories/token_management_transactions_factory_test.py +++ b/multiversx_sdk/core/transactions_factories/token_management_transactions_factory_test.py @@ -568,7 +568,7 @@ def test_create_transaction_for_registering_dynamic(): assert transaction.data.decode() == "registerDynamic@54657374@544553542d313233343536@464e47" assert transaction.sender == alice.to_bech32() assert transaction.receiver == "erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u" - assert transaction.value == 0 + assert transaction.value == 50000000000000000 assert transaction.gas_limit == 60_131_000 @@ -583,5 +583,5 @@ def test_create_transaction_for_registering_and_setting_all_roles(): assert transaction.data.decode() == "registerAndSetAllRolesDynamic@54657374@544553542d313233343536@464e47" assert transaction.sender == alice.to_bech32() assert transaction.receiver == "erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u" - assert transaction.value == 0 + assert transaction.value == 50000000000000000 assert transaction.gas_limit == 60_152_000 diff --git a/multiversx_sdk/core/transactions_outcome_parsers/transaction_events_parser_test.py b/multiversx_sdk/core/transactions_outcome_parsers/transaction_events_parser_test.py index fa7a95c7..82bc2de4 100644 --- a/multiversx_sdk/core/transactions_outcome_parsers/transaction_events_parser_test.py +++ b/multiversx_sdk/core/transactions_outcome_parsers/transaction_events_parser_test.py @@ -225,7 +225,7 @@ def test_multisig_start_perform_action(): api = ApiNetworkProvider("https://testnet-api.multiversx.com") converter = TransactionsConverter() - transaction_on_network = api.get_transaction("69f63a246a65abad952fa052e105e2487fda98e765c318ed3a2af801efeb9818") + transaction_on_network = api.get_transaction("6e893154a3100a3a1ca3cf7ab52a66bb7dab81d2f288943e27cac71a5c437b19") transaction_outcome = converter.transaction_on_network_to_outcome(transaction_on_network) abi = Abi.load(testdata / "multisig-full.abi.json") @@ -251,6 +251,6 @@ def test_multisig_start_perform_action(): '__discriminant__': 5 }, ), - signers=[Address.new_from_bech32("erd1kdl46yctawygtwg2k462307dmz2v55c605737dp3zkxh04sct7asqylhyv").get_public_key(), - Address.new_from_bech32("erd1r69gk66fmedhhcg24g2c5kn2f2a5k4kvpr6jfw67dn2lyydd8cfswy6ede").get_public_key()] + signers=[Address.new_from_bech32("erd1uwef0vsxup3p84fmg3szjs0ae3d9qx0sn5eqe5ayerlgk34cczpsqm2nrl").get_public_key(), + Address.new_from_bech32("erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th").get_public_key()] ) diff --git a/pyproject.toml b/pyproject.toml index 997b3937..ded7fa83 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ allow-direct-references = true [project] name = "multiversx-sdk" -version = "0.13.0" +version = "0.13.1" authors = [ { name="MultiversX" }, ]