Skip to content

Commit f49f9c1

Browse files
committed
refactor: remove unwrap in fetch_verified_proofs_events
1 parent f3e3e92 commit f49f9c1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

batcher/aligned-sdk/src/core/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub const ALIGNED_PROOF_AGG_SERVICE_ADDRESS_MAINNET_STAGE: &str = "0x0";
7777
pub const ALIGNED_PROOF_AGG_SERVICE_ADDRESS_HOLESKY_STAGE: &str =
7878
"0x7Eace34A8d4C4CacE633946C6F7CF4BeF3F33513";
7979
pub const ALIGNED_PROOF_AGG_SERVICE_ADDRESS_HOLESKY: &str =
80-
"0xB93be2158C2C498285634fb8cd10F075dFB568FA";
80+
"0xe84CD4084d8131841CE6DC265361f81F4C59a1d4";
8181
pub const ALIGNED_PROOF_AGG_SERVICE_ADDRESS_DEVNET: &str =
8282
"0xcbEAF3BDe82155F56486Fb5a1072cb8baAf547cc";
8383

batcher/aligned-sdk/src/sdk/aggregation/helpers.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ pub async fn fetch_verified_proofs_events(
3737
.event("AggregatedProofVerified(bytes32,bytes32)")
3838
.from_block(from_block);
3939

40-
Ok(eth_rpc_provider.get_logs(&filter).await.unwrap())
40+
let logs = eth_rpc_provider
41+
.get_logs(&filter)
42+
.await
43+
.map_err(|e| ProofVerificationAggModeError::EthereumProviderError(e.to_string()))?;
44+
45+
Ok(logs)
4146
}
4247

4348
pub async fn get_blob_data_from_verified_proof_event(

0 commit comments

Comments
 (0)