File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -332,18 +332,17 @@ where
332332 for ( raw_log, decoded_log, _) in group {
333333 let block_number =
334334 raw_log. block_number . ok_or ( FilterLogError :: MissingBlockNumber ) ?;
335- let log_timestamp = raw_log. block_timestamp ;
336335 // if the log is missing the block timestamp, we need to fetch it.
337336 // the block timestamp is necessary in order to derive the beacon
338337 // slot and query the blobs.
339- let block_timestamp = if log_timestamp. is_none ( ) {
338+ let block_timestamp = if let Some ( ts) = raw_log. block_timestamp {
339+ ts
340+ } else {
340341 self . execution_provider
341342 . get_block ( block_number. into ( ) )
342343 . await ?
343344 . map ( |b| b. header . timestamp )
344345 . ok_or ( FilterLogError :: MissingBlockTimestamp ) ?
345- } else {
346- log_timestamp. expect ( "checked for Some(...)" )
347346 } ;
348347 let batch_index =
349348 decoded_log. batch_index . uint_try_to ( ) . expect ( "u256 to u64 conversion error" ) ;
You can’t perform that action at this time.
0 commit comments