Skip to content

Commit 6e67363

Browse files
add the cfg(test) modifier to the for_testing builders
1 parent a2aa18d commit 6e67363

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

aggregation_mode/proof_aggregator/src/backend/fetcher.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ pub struct ProofsFetcher {
3333
}
3434

3535
impl ProofsFetcher {
36+
#[cfg(test)]
3637
pub fn new_for_testing(config: &Config) -> Self {
3738
let rpc_url = config.eth_rpc_url.parse().expect("RPC URL should be valid");
3839
let rpc_provider = ProviderBuilder::new().connect_http(rpc_url);

aggregation_mode/proof_aggregator/src/backend/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ pub struct ProofAggregator {
5252
}
5353

5454
impl ProofAggregator {
55+
#[cfg(test)]
5556
pub fn new_for_testing(config: Config) -> Self {
5657
let rpc_url: reqwest::Url = config.eth_rpc_url.parse().expect("RPC URL should be valid");
5758
let signer = LocalSigner::random();

0 commit comments

Comments
 (0)