Skip to content

Commit

Permalink
test_: hit anvil via status-go, not directly
Browse files Browse the repository at this point in the history
  • Loading branch information
antdanchenko committed Dec 10, 2024
1 parent aac61ca commit e78d3a7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests-functional/tests/test_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class TestTransactionFromRoute(StatusBackendTestCase):
SignalType.WALLET_TRANSACTION_STATUS_CHANGED.value,
SignalType.WALLET_ROUTER_TRANSACTIONS_SENT.value,
]

def test_tx_from_route(self):

_uuid = str(uuid.uuid4())
Expand Down Expand Up @@ -105,12 +104,11 @@ def test_tx_from_route(self):
assert tx_status["event"]["status"] == "Success"
tx_hash = tx_status["event"]["hash"]

method = "eth_getTransactionByHash"
params = [tx_hash]
method = "ethclient_transactionByHash"
params = [self.network_id, tx_hash]

response = self.rpc_client.rpc_valid_request(method, params, url=option.anvil_url)
tx_details = response.json()["result"]
response = self.rpc_client.rpc_valid_request(method, params)
tx_details = response.json()["result"]["tx"]

assert tx_details["value"] == amount_in
assert tx_details["to"].upper() == user_2.address.upper()
assert tx_details["from"].upper() == user_1.address.upper()

0 comments on commit e78d3a7

Please sign in to comment.