From 949c2284162023737ee90d681fe33d71bd220920 Mon Sep 17 00:00:00 2001 From: ChihChengLiang Date: Wed, 31 Jan 2024 15:46:02 +0800 Subject: [PATCH] de-duplicate constructor --- bus-mapping/src/circuit_input_builder.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/bus-mapping/src/circuit_input_builder.rs b/bus-mapping/src/circuit_input_builder.rs index 6b9bc346b5..6861a870ae 100644 --- a/bus-mapping/src/circuit_input_builder.rs +++ b/bus-mapping/src/circuit_input_builder.rs @@ -674,14 +674,7 @@ pub fn build_state_code_db( impl BuilderClient

{ /// Create a new BuilderClient pub async fn new(client: GethClient

, circuits_params: FixedCParams) -> Result { - let chain_id = client.get_chain_id().await?; - - Ok(Self { - cli: client, - chain_id: chain_id.into(), - circuits_params, - feature_config: FeatureConfig::default(), - }) + Self::new_with_features(client, circuits_params, FeatureConfig::default()).await } /// Create a new BuilderClient