@@ -335,9 +335,6 @@ impl ProofAggregator {
335335 info ! ( "Sending proof to ProofAggregationService contract..." ) ;
336336
337337 let max_retries = self . config . max_bump_retries ;
338- let retry_interval = Duration :: from_secs ( self . config . bump_retry_interval_seconds ) ;
339- let base_bump_percentage = self . config . base_bump_percentage ;
340- let retry_attempt_percentage = self . config . retry_attempt_percentage ;
341338
342339 let mut last_error: Option < AggregatedProofSubmissionError > = None ;
343340
@@ -350,10 +347,7 @@ impl ProofAggregator {
350347 & blob,
351348 blob_versioned_hash,
352349 aggregated_proof,
353- base_bump_percentage,
354- retry_attempt_percentage,
355350 attempt as u64 ,
356- retry_interval,
357351 )
358352 . await ;
359353
@@ -393,11 +387,12 @@ impl ProofAggregator {
393387 blob : & BlobTransactionSidecar ,
394388 blob_versioned_hash : [ u8 ; 32 ] ,
395389 aggregated_proof : & AlignedProof ,
396- base_bump_percentage : u64 ,
397- retry_attempt_percentage : u64 ,
398390 attempt : u64 ,
399- retry_interval : Duration ,
400391 ) -> Result < TransactionReceipt , AggregatedProofSubmissionError > {
392+ let retry_interval = Duration :: from_secs ( self . config . bump_retry_interval_seconds ) ;
393+ let base_bump_percentage = self . config . base_bump_percentage ;
394+ let retry_attempt_percentage = self . config . retry_attempt_percentage ;
395+
401396 // Build the transaction request
402397 let mut tx_req = match aggregated_proof {
403398 AlignedProof :: SP1 ( proof) => self
@@ -446,15 +441,13 @@ impl ProofAggregator {
446441 . await
447442 . map_err ( |err| {
448443 AggregatedProofSubmissionError :: SendVerifyAggregatedProofTransaction ( format ! (
449- "Failed to fill transaction: {}" ,
450- err
444+ "Failed to fill transaction: {err}"
451445 ) )
452446 } ) ?
453447 . try_into_envelope ( )
454448 . map_err ( |err| {
455449 AggregatedProofSubmissionError :: SendVerifyAggregatedProofTransaction ( format ! (
456- "Failed to convert to envelope: {}" ,
457- err
450+ "Failed to convert to envelope: {err}"
458451 ) )
459452 } ) ?;
460453
@@ -463,17 +456,15 @@ impl ProofAggregator {
463456 . try_into_pooled ( )
464457 . map_err ( |err| {
465458 AggregatedProofSubmissionError :: SendVerifyAggregatedProofTransaction ( format ! (
466- "Failed to pool transaction: {}" ,
467- err
459+ "Failed to pool transaction: {err}"
468460 ) )
469461 } ) ?
470462 . try_map_eip4844 ( |tx| {
471463 tx. try_map_sidecar ( |sidecar| sidecar. try_into_7594 ( EnvKzgSettings :: Default . get ( ) ) )
472464 } )
473465 . map_err ( |err| {
474466 AggregatedProofSubmissionError :: SendVerifyAggregatedProofTransaction ( format ! (
475- "Failed to convert to EIP-7594: {}" ,
476- err
467+ "Failed to convert to EIP-7594: {err}"
477468 ) )
478469 } ) ?;
479470
@@ -484,8 +475,7 @@ impl ProofAggregator {
484475 . await
485476 . map_err ( |err| {
486477 AggregatedProofSubmissionError :: SendVerifyAggregatedProofTransaction ( format ! (
487- "Failed to send raw transaction: {}" ,
488- err
478+ "Failed to send raw transaction: {err}"
489479 ) )
490480 } ) ?;
491481
@@ -498,8 +488,7 @@ impl ProofAggregator {
498488 Ok ( Ok ( receipt) ) => Ok ( receipt) ,
499489 Ok ( Err ( err) ) => Err (
500490 AggregatedProofSubmissionError :: SendVerifyAggregatedProofTransaction ( format ! (
501- "Error getting receipt: {}" ,
502- err
491+ "Error getting receipt: {err}"
503492 ) ) ,
504493 ) ,
505494 Err ( _) => Err (
0 commit comments