Skip to content

Commit b3ce47f

Browse files
committed
test: fix
1 parent 24f8c4f commit b3ce47f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/latest_events/basic.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,9 @@ async fn scan_latest_boundary_range_single_block() -> anyhow::Result<()> {
342342
// Pick the expected tx's block number as the block range
343343
let expected_tx_hash = expected[0].tx_hash;
344344
let start = provider
345-
.get_block_number_by_id(expected_tx_hash.into())
345+
.get_transaction_by_hash(expected_tx_hash)
346346
.await?
347+
.map(|t| t.block_number.unwrap())
347348
.map(BlockNumberOrTag::from)
348349
.unwrap();
349350
let end = start;

0 commit comments

Comments
 (0)