@@ -860,7 +860,7 @@ impl Filter {
860
860
/// * `block_timestamp` - Block timestamp
861
861
/// * `tx_hashes_and_receipts` - Iterator of (transaction_hash, receipt) pairs
862
862
/// * `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 > (
864
864
& self ,
865
865
block_num_hash : BlockNumHash ,
866
866
block_timestamp : u64 ,
@@ -2217,12 +2217,8 @@ mod tests {
2217
2217
// Test 5: Test matching_block_logs_with_tx_hashes with block filter
2218
2218
let filter = Filter :: new ( ) . from_block ( 1000u64 ) . to_block ( 1000u64 ) . address ( addr1) ;
2219
2219
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 ) ;
2226
2222
2227
2223
assert_eq ! ( result. len( ) , 2 ) ;
2228
2224
assert_eq ! ( result[ 0 ] . inner. address, addr1) ;
@@ -2231,12 +2227,8 @@ mod tests {
2231
2227
// Test 6: Test matching_block_logs_with_tx_hashes with non-matching block
2232
2228
let filter = Filter :: new ( ) . from_block ( 2000u64 ) . to_block ( 2000u64 ) ;
2233
2229
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 ) ;
2240
2232
2241
2233
assert_eq ! ( result. len( ) , 0 ) ; // Should not append any logs due to block mismatch
2242
2234
0 commit comments