From 43f5e3ff7276187f1b20fb33fc1e7c3de15bfa4a Mon Sep 17 00:00:00 2001 From: danceratopz Date: Wed, 29 May 2024 10:12:22 +0200 Subject: [PATCH] style(cli): fix-up imports for tox --- src/cli/gentest.py | 1 - src/ethereum_test_tools/rpc/rpc.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/cli/gentest.py b/src/cli/gentest.py index 03fddfe873..27d5bee299 100644 --- a/src/cli/gentest.py +++ b/src/cli/gentest.py @@ -10,7 +10,6 @@ from typing import Dict, List, TextIO import click -import requests from ethereum_test_tools import Account, Address, Transaction, common from ethereum_test_tools.rpc.rpc import EthRPC diff --git a/src/ethereum_test_tools/rpc/rpc.py b/src/ethereum_test_tools/rpc/rpc.py index 11ef3ba882..6d06a99a22 100644 --- a/src/ethereum_test_tools/rpc/rpc.py +++ b/src/ethereum_test_tools/rpc/rpc.py @@ -6,9 +6,9 @@ from typing import Any, Dict, List, Literal, Optional, Union import requests -from cli.gentest import RequestManager from tenacity import retry, stop_after_attempt, wait_exponential +from cli.gentest import RequestManager from ethereum_test_tools import Address BlockNumberType = Union[int, Literal["latest", "earliest", "pending"]] @@ -92,7 +92,7 @@ def get_transaction_count(self, address: Address, block_number: BlockNumberType """ block = hex(block_number) if isinstance(block_number, int) else block_number return self.post_request("eth_getTransactionCount", [address, block]) - + def get_transaction_by_hash(self, transaction_hash: str): """ `eth_getTransactionByHash`: Returns transation details. @@ -120,7 +120,7 @@ def storage_at_keys( storage_value = self.get_storage_at(account, key, block_number) results[key] = storage_value return results - + def debug_trace_call(self, tr: RequestManager.RemoteTransaction): """ `debug_traceCall`: Returns pre state required for transaction