diff --git a/integration-tests/tests/add.wasm b/integration-tests/tests/add.wasm deleted file mode 100644 index 6f306d39f6f..00000000000 Binary files a/integration-tests/tests/add.wasm and /dev/null differ diff --git a/integration-tests/tests/singlepass_crash.wasm b/integration-tests/tests/singlepass_crash.wasm deleted file mode 100644 index 778ec394a7a..00000000000 Binary files a/integration-tests/tests/singlepass_crash.wasm and /dev/null differ diff --git a/pytest/testdata/hello.wasm b/pytest/testdata/hello.wasm deleted file mode 100644 index 10d1e721581..00000000000 Binary files a/pytest/testdata/hello.wasm and /dev/null differ diff --git a/pytest/tests/sanity/rpc_light_client_execution_outcome_proof.py b/pytest/tests/sanity/rpc_light_client_execution_outcome_proof.py index de2d2a6884f..44d3662c532 100644 --- a/pytest/tests/sanity/rpc_light_client_execution_outcome_proof.py +++ b/pytest/tests/sanity/rpc_light_client_execution_outcome_proof.py @@ -3,14 +3,15 @@ # the transaction and receipts execution outcome proof for # light client works -import sys import base58, base64 -import json import hashlib +import json +import struct +import sys sys.path.append('lib') from cluster import start_cluster, Key -from utils import load_binary_file, compute_merkle_root_from_path +from utils import load_test_contract, compute_merkle_root_from_path from serializer import BinarySerializer import transaction import time @@ -113,36 +114,15 @@ def serialize_execution_outcome_with_id(outcome, id): return borsh_res -nodes = start_cluster( - 2, 0, 1, None, - [["epoch_length", 1000], ["block_producer_kickout_threshold", 80]], {} -) - -# deploy a smart contract for testing -contract_key = nodes[0].signer_key -hello_smart_contract = load_binary_file('testdata/hello.wasm') - -status = nodes[0].get_status() -latest_block_hash = status['sync_info']['latest_block_hash'] -deploy_contract_tx = transaction.sign_deploy_contract_tx( - contract_key, hello_smart_contract, 10, - base58.b58decode(latest_block_hash.encode('utf8'))) -deploy_contract_response = nodes[0].send_tx_and_wait(deploy_contract_tx, 15) -assert 'error' not in deploy_contract_response, deploy_contract_response - - -def check_transaction_outcome_proof(should_succeed, nonce): +def check_transaction_outcome_proof(nodes, should_succeed, nonce): status = nodes[1].get_status() latest_block_hash = status['sync_info']['latest_block_hash'] function_caller_key = nodes[0].signer_key gas = 300000000000000 if should_succeed else 1000 function_call_1_tx = transaction.sign_function_call_tx( - function_caller_key, contract_key.account_id, 'setKeyValue', - json.dumps({ - "key": "my_key", - "value": "my_value" - }).encode('utf-8'), gas, 100000000000, nonce, + function_caller_key, nodes[0].signer_key.account_id, 'write_key_value', + struct.pack('