We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24f8c4f commit b3ce47fCopy full SHA for b3ce47f
tests/latest_events/basic.rs
@@ -342,8 +342,9 @@ async fn scan_latest_boundary_range_single_block() -> anyhow::Result<()> {
342
// Pick the expected tx's block number as the block range
343
let expected_tx_hash = expected[0].tx_hash;
344
let start = provider
345
- .get_block_number_by_id(expected_tx_hash.into())
+ .get_transaction_by_hash(expected_tx_hash)
346
.await?
347
+ .map(|t| t.block_number.unwrap())
348
.map(BlockNumberOrTag::from)
349
.unwrap();
350
let end = start;
0 commit comments