From 9ca55da315480051fd87ae51b8163f114e53b794 Mon Sep 17 00:00:00 2001 From: kclowes Date: Fri, 4 Jun 2021 10:35:29 -0600 Subject: [PATCH] Cleanup --- web3/providers/async_base.py | 1 - web3/tools/benchmark/main.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/web3/providers/async_base.py b/web3/providers/async_base.py index d75095265b..4720357ce8 100644 --- a/web3/providers/async_base.py +++ b/web3/providers/async_base.py @@ -84,7 +84,6 @@ async def isConnected(self) -> bool: class AsyncJSONBaseProvider(AsyncBaseProvider): def __init__(self) -> None: self.request_counter = itertools.count() - super().__init__() async def encode_rpc_request(self, method: RPCEndpoint, params: Any) -> bytes: rpc_dict = { diff --git a/web3/tools/benchmark/main.py b/web3/tools/benchmark/main.py index 69fd464d6f..1f797a270f 100644 --- a/web3/tools/benchmark/main.py +++ b/web3/tools/benchmark/main.py @@ -109,6 +109,7 @@ def unlocked_account(w3: "Web3") -> ChecksumAddress: async def async_unlocked_account(w3: Web3, w3_eth: Eth) -> ChecksumAddress: + # change w3_eth type to w3_eth: AsyncEth once AsyncEth reflects Eth coinbase = await w3_eth.coinbase # type: ignore w3.geth.personal.unlock_account(coinbase, KEYFILE_PW) return coinbase