Skip to content

Commit

Permalink
Fix preparation of arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Dec 20, 2024
1 parent 0420360 commit 8a32d24
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions systemtests/generate_testdata_on_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ def create_contract_deployment_with_move_balance(self, sender: "Account", amount
sender=sender.address,
bytecode=CONTRACT_PATH_DUMMY,
gas_limit=5000000,
arguments=[0],
arguments=[BigUIntValue(0)],
native_transfer_amount=amount
)

Expand All @@ -802,7 +802,7 @@ def create_contract_deployment_with_move_balance_with_signal_error(self, sender:
sender=sender.address,
bytecode=CONTRACT_PATH_ADDER,
gas_limit=5000000,
arguments=[1, 2, 3, 4, 5],
arguments=[BigUIntValue(1), BigUIntValue(2), BigUIntValue(3), BigUIntValue(4), BigUIntValue(5)],
native_transfer_amount=amount
)

Expand All @@ -817,7 +817,7 @@ def create_contract_call_with_move_balance_with_signal_error(self, sender: "Acco
contract=contract,
function="missingFunction",
gas_limit=5000000,
arguments=[1, 2, 3, 4, 5],
arguments=[BigUIntValue(1), BigUIntValue(2), BigUIntValue(3), BigUIntValue(4), BigUIntValue(5)],
native_transfer_amount=amount
)

Expand Down Expand Up @@ -858,7 +858,7 @@ def create_change_owner_address(self, contract: Address, owner: "Account", new_o
contract=contract,
function="ChangeOwnerAddress",
gas_limit=6000000,
arguments=[new_owner.get_public_key()]
arguments=[AddressValue.new_from_address(new_owner)]
)

self.apply_nonce(transaction)
Expand All @@ -875,7 +875,7 @@ def create_relayed_v1_with_contract_call_with_move_balance_with_signal_error(sel
contract=contract,
function="add",
gas_limit=5000000,
arguments=[1, 2, 3, 4, 5],
arguments=[BigUIntValue(1), BigUIntValue(2), BigUIntValue(3), BigUIntValue(4), BigUIntValue(5)],
native_transfer_amount=amount
)

Expand Down

0 comments on commit 8a32d24

Please sign in to comment.