Skip to content

Commit d69a348

Browse files
committed
fix: set better error messages
1 parent d15e9a9 commit d69a348

File tree

1 file changed

+4
-4
lines changed
  • aggregation_mode/src/backend

1 file changed

+4
-4
lines changed

aggregation_mode/src/backend/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ pub struct ProofAggregator {
4747

4848
impl ProofAggregator {
4949
pub fn new(config: &Config) -> Self {
50-
let rpc_url = config.eth_rpc_url.parse().expect("correct url");
50+
let rpc_url = config.eth_rpc_url.parse().expect("RPC URL should be valid");
5151
let signer = LocalSigner::decrypt_keystore(
5252
config.ecdsa.private_key_store_path.clone(),
5353
config.ecdsa.private_key_store_password.clone(),
5454
)
55-
.expect("Correct keystore signer");
55+
.expect("Keystore signer should be `cast wallet` compliant");
5656
let wallet = EthereumWallet::from(signer);
5757
let rpc_provider = ProviderBuilder::new().wallet(wallet).on_http(rpc_url);
58-
let proof_aggregation_service: AlignedProofAggregationService::AlignedProofAggregationServiceInstance<(), alloy::providers::fillers::FillProvider<alloy::providers::fillers::JoinFill<alloy::providers::fillers::JoinFill<alloy::providers::Identity, alloy::providers::fillers::JoinFill<alloy::providers::fillers::GasFiller, alloy::providers::fillers::JoinFill<alloy::providers::fillers::BlobGasFiller, alloy::providers::fillers::JoinFill<alloy::providers::fillers::NonceFiller, alloy::providers::fillers::ChainIdFiller>>>>, alloy::providers::fillers::WalletFiller<EthereumWallet>>, alloy::providers::RootProvider>> = AlignedProofAggregationService::new(
58+
let proof_aggregation_service = AlignedProofAggregationService::new(
5959
Address::from_str(&config.proof_aggregation_service_address)
60-
.expect("Address to be correct"),
60+
.expect("AlignedProofAggregationService address should be valid"),
6161
rpc_provider,
6262
);
6363
let fetcher = ProofsFetcher::new(config);

0 commit comments

Comments
 (0)