Bytes instead of U256
This commit is contained in:
parent
856f4e8e86
commit
265003cd35
@ -1,7 +1,7 @@
|
|||||||
///! Rate-limited communication with a web3 provider
|
///! Rate-limited communication with a web3 provider
|
||||||
use anyhow::Context;
|
use anyhow::Context;
|
||||||
use derive_more::From;
|
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::future::try_join_all;
|
||||||
use futures::StreamExt;
|
use futures::StreamExt;
|
||||||
use redis_cell_client::RedisCellClient;
|
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
|
// 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
|
// just query something very old and if we get an error, we don't have archive data
|
||||||
// TODO: this query is not correct. find one that fails on
|
let archive_result: Result<Bytes, _> = new_connection
|
||||||
let archive_result: Result<U256, _> = new_connection
|
|
||||||
.wait_for_request_handle()
|
.wait_for_request_handle()
|
||||||
.await
|
.await
|
||||||
.request(
|
.request(
|
||||||
|
Loading…
Reference in New Issue
Block a user