Skip to content

Commit

Permalink
Fix issue cost for registering dynamic NFTs.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Sep 20, 2024
1 parent 79cd70b commit 79ab346
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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()]
)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ allow-direct-references = true

[project]
name = "multiversx-sdk"
version = "0.13.0"
version = "0.13.1"
authors = [
{ name="MultiversX" },
]
Expand Down

0 comments on commit 79ab346

Please sign in to comment.