Skip to content

Commit

Permalink
Eof/test (#11)
Browse files Browse the repository at this point in the history
* Fixed test_call_contract_function_with_neon_transfer test
  • Loading branch information
YaroslavNekryach authored Oct 20, 2023
1 parent 0cbec28 commit 7d9e3cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evm_loader/tests/test_execute_trx_from_instruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def test_call_contract_function_with_neon_transfer(self, operator_keypair, treas
transfer_amount = random.randint(1, 1000)

contract = deploy_contract(operator_keypair, sender_with_tokens, "string_setter.binary", evm_loader,
treasury_pool, is_eof)
treasury_pool, is_eof=is_eof)

sender_balance_before = get_neon_balance(solana_client, sender_with_tokens.solana_account_address)
contract_balance_before = get_neon_balance(solana_client, contract.solana_address)
Expand All @@ -99,7 +99,7 @@ def test_call_contract_function_with_neon_transfer(self, operator_keypair, treas
contract.solana_address],
operator_keypair)

check_transaction_logs_have_text(resp.value, "exit_status=0x11")
check_transaction_logs_have_text(resp.value, "exit_status=0x12" if is_eof else "exit_status=0x11")

assert text in to_text(neon_cli().call_contract_get_function(evm_loader, sender_with_tokens, contract, "get()"))

Expand Down

0 comments on commit 7d9e3cf

Please sign in to comment.