@@ -62,12 +62,10 @@ impl ProofAggregator {
6262 let wallet = EthereumWallet :: from ( signer) ;
6363
6464 // Check if the monthly budget is non-negative to avoid runtime errors later
65- let monthly_budget_in_wei = parse_ether ( config. monthly_budget_eth ) . expect ( "Monthly budget must be a non-negative value" ) ;
66-
67- info ! (
68- "Monthly budget set to {} wei" ,
69- monthly_budget_in_wei
70- ) ;
65+ let monthly_budget_in_wei = parse_ether ( config. monthly_budget_eth )
66+ . expect ( "Monthly budget must be a non-negative value" ) ;
67+
68+ info ! ( "Monthly budget set to {} wei" , monthly_budget_in_wei) ;
7169
7270 let rpc_provider = ProviderBuilder :: new ( ) . connect_http ( rpc_url. clone ( ) ) ;
7371
@@ -163,7 +161,9 @@ impl ProofAggregator {
163161
164162 let gas_price = match self . rpc_provider . get_gas_price ( ) . await {
165163 Ok ( price) => Ok ( price) ,
166- Err ( e1) => Err ( AggregatedProofSubmissionError :: GasPriceError ( e1. to_string ( ) ) ) ,
164+ Err ( e1) => Err ( AggregatedProofSubmissionError :: GasPriceError (
165+ e1. to_string ( ) ,
166+ ) ) ,
167167 } ?;
168168
169169 if self . should_send_proof_to_verify_on_chain (
@@ -198,7 +198,8 @@ impl ProofAggregator {
198198 const SECONDS_PER_MONTH : u64 = 30 * 24 * 60 * 60 ;
199199
200200 // Note: this expect is safe because in case it was invalid, should have been caught at startup
201- let monthly_budget_in_wei = parse_ether ( monthly_eth_budget) . expect ( "The monthly budget should be a non-negative value" ) ;
201+ let monthly_budget_in_wei = parse_ether ( monthly_eth_budget)
202+ . expect ( "The monthly budget should be a non-negative value" ) ;
202203
203204 let elapsed_seconds = U256 :: from ( time_elapsed. as_secs ( ) ) ;
204205
0 commit comments