We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2da166b commit 8ae4e77Copy full SHA for 8ae4e77
aggregation_mode/src/backend/mod.rs
@@ -157,12 +157,9 @@ impl ProofAggregator {
157
// We add 24 hours because the proof aggregator runs once a day, so the time elapsed
158
// should be considered over a 24h period.
159
160
- let gas_price = match self.rpc_provider.get_gas_price().await {
161
- Ok(price) => Ok(U256::from(price)),
162
- Err(e1) => Err(AggregatedProofSubmissionError::GasPriceError(
163
- e1.to_string(),
164
- )),
165
- }?;
+ let gas_price = match self.rpc_provider.get_gas_price().await.map_err(|e| AggregatedProofSubmissionError::GasPriceError(
+ e.to_string(),
+ ))?;
166
167
if self.should_send_proof_to_verify_on_chain(
168
time_elapsed,
0 commit comments