@@ -232,23 +232,23 @@ where
232232#[ instrument( skip_all, level = "trace" ,
233233 fields(
234234 fcs = ?fcs,
235- payload_attributes = ?payload_attributes
235+ payload_attributes = ?payload_attributes_with_batch_info
236236 )
237237 ) ]
238238async fn handle_payload_attributes < EC , P > (
239239 client : Arc < EC > ,
240240 provider : P ,
241241 fcs : ForkchoiceState ,
242- payload_attributes : ScrollPayloadAttributesWithBatchInfo ,
242+ payload_attributes_with_batch_info : ScrollPayloadAttributesWithBatchInfo ,
243243) -> Result < ConsolidationOutcome , EngineDriverError >
244244where
245245 EC : ScrollEngineApi + Unpin + Send + Sync + ' static ,
246246 P : Provider < Scroll > + Unpin + Send + Sync + ' static ,
247247{
248- tracing:: trace!( target: "scroll::engine::future" , ?fcs, ?payload_attributes , "handling payload attributes" ) ;
248+ tracing:: trace!( target: "scroll::engine::future" , ?fcs, ?payload_attributes_with_batch_info , "handling payload attributes" ) ;
249249
250250 let ScrollPayloadAttributesWithBatchInfo { mut payload_attributes, batch_info } =
251- payload_attributes ;
251+ payload_attributes_with_batch_info . clone ( ) ;
252252
253253 let maybe_execution_payload = provider
254254 . get_block ( ( fcs. safe_block_info ( ) . number + 1 ) . into ( ) )
@@ -288,7 +288,9 @@ where
288288 // retrieve the execution payload
289289 let execution_payload = get_payload (
290290 client. clone ( ) ,
291- fc_updated. payload_id . expect ( "payload attributes has been set" ) ,
291+ fc_updated
292+ . payload_id
293+ . ok_or ( EngineDriverError :: MissingPayloadId ( payload_attributes_with_batch_info) ) ?,
292294 )
293295 . await ?;
294296 // issue the execution payload to the EL
0 commit comments