Skip to content
Closed
Prev Previous commit
Next Next commit
fixed test_deploy_contract_with_dynamic_gas test
  • Loading branch information
kristinaNikolaevaa committed Sep 4, 2023
commit 2bfa658eee064ea4be2411efed17f7aefc18af84
6 changes: 4 additions & 2 deletions evm_loader/tests/test_transaction_step_from_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,12 @@ def test_deploy_contract_with_dynamic_gas(self, operator_keypair, holder_acc, tr
with open(contract_path, 'rb') as f:
contract_code = f.read()

write_transaction_to_holder_account(signed_tx, holder_acc, operator_keypair)

steps_count = neon_cli().get_steps_count(evm_loader, sender_with_tokens, "deploy", contract_code.hex())
resp = execute_transaction_steps_from_account(operator_keypair, evm_loader, treasury_pool, holder_acc,
signed_tx, [contract.solana_address,
sender_with_tokens.solana_account_address],
[contract.solana_address,
sender_with_tokens.solana_account_address],
steps_count)
check_holder_account_tag(holder_acc, FINALIZED_STORAGE_ACCOUNT_INFO_LAYOUT, TAG_FINALIZED_STATE)
check_transaction_logs_have_text(resp.value.transaction.transaction.signatures[0], "exit_status=0x12")
Expand Down