Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
miiu96 committed Nov 22, 2023
1 parent b8b7399 commit 1d3b134
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/contracts/adder/adder.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def main():
deploy_transaction = sc_factory.create_transaction_for_deploy(
sender=address,
bytecode=bytecode,
arguments=[10],
arguments=[0],
gas_limit=10000000,
is_upgradeable=True,
is_readable=True,
Expand Down Expand Up @@ -67,7 +67,7 @@ def main():
if not tx_from_network.status.is_successful():
sys.exit(f"transaction status is not correct, status received->{tx_from_network.status}")

value = 10
value = 10
contract_address = extract_contract_address(tx_from_network)
call_transaction = sc_factory.create_transaction_for_execute(
sender=address,
Expand All @@ -81,7 +81,7 @@ def main():
call_transaction.signature = user_signer.sign(tx_computer.compute_bytes_for_signing(call_transaction))

# send transaction
tx_hash = provider.send_transaction(deploy_transaction)
tx_hash = provider.send_transaction(call_transaction)
print(f"sc call tx hash: {tx_hash}")

time.sleep(0.5)
Expand Down

0 comments on commit 1d3b134

Please sign in to comment.