Skip to content

Commit

Permalink
removed not actual tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kristinaNikolaevaa committed Feb 18, 2025
1 parent 90f1505 commit 4621255
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 50 deletions.
8 changes: 0 additions & 8 deletions integration/tests/basic/evm/test_precompiled_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,3 @@ def test_eth_get_code_ethereum_precompiled(self, json_rpc_client, contract):
params=[address, "latest"],
)
assert response["result"] == "0x"

@pytest.mark.parametrize("address", NEON_PRECOMPILED)
def test_eth_get_code_neon_precompiled(self, json_rpc_client, address):
response = json_rpc_client.send_rpc(
"eth_getCode",
params=[address, "latest"],
)
assert response["result"] == "0xfe"
42 changes: 0 additions & 42 deletions integration/tests/basic/evm/test_solana_interoperability.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,48 +526,6 @@ def test_solana_call_after_iterative_actions_exceed_accounts_limit(
):
call_solana_caller.functions.executeInIterativeMode(loop_count, lamports, serialized).build_transaction(tx)

def test_solana_call_inside_iterative_actions(
self, counter_resource_address: bytes, call_solana_caller, get_counter_value
):
sender = self.accounts[0]
lamports = 0
matrix_lenght = 8
matrix = [[random.randint(1, 100) for _ in range(matrix_lenght)] for _ in range(matrix_lenght)]

instruction = Instruction(
program_id=COUNTER_ID,
accounts=[
AccountMeta(Pubkey(counter_resource_address), is_signer=False, is_writable=True),
],
data=bytes([0x1]),
)
serialized = serialize_instruction(COUNTER_ID, instruction)

tx = self.web3_client.make_raw_tx(sender.address)
instruction_tx = call_solana_caller.functions.solanaCallInsideActionWithMatrix(
matrix, lamports, serialized
).build_transaction(tx)
resp = self.web3_client.send_transaction(sender, instruction_tx)
assert resp["status"] == 1

event_logs_bytes = call_solana_caller.events.LogBytes().process_receipt(resp)
for i in range(matrix_lenght - 1):
next(get_counter_value)

all_logs_value = [
int.from_bytes(event_logs_byte.args.value, byteorder="little") for event_logs_byte in event_logs_bytes
]

assert max(all_logs_value) == next(get_counter_value)

event_logs_int = call_solana_caller.events.LogInt().process_receipt(resp)
assert event_logs_int[0].args.value == sum(sum(row) for row in matrix)

wait_condition(
lambda: self.web3_client.is_trx_iterative(resp["transactionHash"].hex()) is True,
timeout_sec=60,
)

def test_solana_call_of_two_programs_in_one_iterative_tx(
self, counter_resource_address: bytes, call_solana_caller, get_counter_value, sol_client, solana_account
):
Expand Down

0 comments on commit 4621255

Please sign in to comment.