Skip to content

Commit 9629688

Browse files
committed
using wrapped eth.get_block, which retries, in eth.get_logs rather than eth._get_logs, which throws an exception if sth. goes wrong.
1 parent 61aefc7 commit 9629688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IceCreamSwapWeb3/EthAdvanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def get_logs(
242242

243243
# getting logs for a single block, which is not at the chain head. No drama
244244
if num_blocks == 1:
245-
block_hash = self._get_block(from_block)["hash"].to_0x_hex()
245+
block_hash = self.get_block(from_block)["hash"].to_0x_hex()
246246
single_hash_filter = {**filter_params, "blockHash": block_hash}
247247
del single_hash_filter["fromBlock"]
248248
del single_hash_filter["toBlock"]

0 commit comments

Comments
 (0)