Skip to content

Commit

Permalink
style(cli): fix-up imports for tox
Browse files Browse the repository at this point in the history
  • Loading branch information
danceratopz committed May 29, 2024
1 parent b345f0f commit 43f5e3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/cli/gentest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/ethereum_test_tools/rpc/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]]
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 43f5e3f

Please sign in to comment.