From 265003cd3526c5d808db20f95affccce6730b745 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sat, 9 Jul 2022 04:39:47 +0000 Subject: [PATCH] Bytes instead of U256 --- web3-proxy/src/connection.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web3-proxy/src/connection.rs b/web3-proxy/src/connection.rs index 86ad6a6d..bcd014da 100644 --- a/web3-proxy/src/connection.rs +++ b/web3-proxy/src/connection.rs @@ -1,7 +1,7 @@ ///! Rate-limited communication with a web3 provider use anyhow::Context; use derive_more::From; -use ethers::prelude::{Block, Middleware, ProviderError, TxHash, U256}; +use ethers::prelude::{Block, Bytes, Middleware, ProviderError, TxHash, U256}; use futures::future::try_join_all; use futures::StreamExt; use redis_cell_client::RedisCellClient; @@ -193,9 +193,8 @@ impl Web3Connection { } // we could take "archive" as a parameter, but we would want a safety check on it regardless - // so instead we just query it and use it - // TODO: this query is not correct. find one that fails on - let archive_result: Result = new_connection + // just query something very old and if we get an error, we don't have archive data + let archive_result: Result = new_connection .wait_for_request_handle() .await .request(