Skip to content

Commit d82ee64

Browse files
committed
chore: rename
1 parent 7e5059d commit d82ee64

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

crates/rpc-types-eth/src/filter.rs

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ impl Filter {
860860
/// * `block_timestamp` - Block timestamp
861861
/// * `tx_hashes_and_receipts` - Iterator of (transaction_hash, receipt) pairs
862862
/// * `removed` - Whether logs are from a removed block (reorg)
863-
pub fn matching_block_logs_with_tx_hashes<'a, I, R>(
863+
pub fn matching_block_logs<'a, I, R>(
864864
&self,
865865
block_num_hash: BlockNumHash,
866866
block_timestamp: u64,
@@ -2217,12 +2217,8 @@ mod tests {
22172217
// Test 5: Test matching_block_logs_with_tx_hashes with block filter
22182218
let filter = Filter::new().from_block(1000u64).to_block(1000u64).address(addr1);
22192219
let tx_receipt_pairs: Vec<_> = tx_hashes.iter().copied().zip(receipts.iter()).collect();
2220-
let result = filter.matching_block_logs_with_tx_hashes(
2221-
block_num_hash,
2222-
block_timestamp,
2223-
tx_receipt_pairs,
2224-
false,
2225-
);
2220+
let result =
2221+
filter.matching_block_logs(block_num_hash, block_timestamp, tx_receipt_pairs, false);
22262222

22272223
assert_eq!(result.len(), 2);
22282224
assert_eq!(result[0].inner.address, addr1);
@@ -2231,12 +2227,8 @@ mod tests {
22312227
// Test 6: Test matching_block_logs_with_tx_hashes with non-matching block
22322228
let filter = Filter::new().from_block(2000u64).to_block(2000u64);
22332229
let tx_receipt_pairs: Vec<_> = tx_hashes.iter().copied().zip(receipts.iter()).collect();
2234-
let result = filter.matching_block_logs_with_tx_hashes(
2235-
block_num_hash,
2236-
block_timestamp,
2237-
tx_receipt_pairs,
2238-
false,
2239-
);
2230+
let result =
2231+
filter.matching_block_logs(block_num_hash, block_timestamp, tx_receipt_pairs, false);
22402232

22412233
assert_eq!(result.len(), 0); // Should not append any logs due to block mismatch
22422234

0 commit comments

Comments
 (0)