Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
de-duplicate constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
ChihChengLiang committed Jan 31, 2024
1 parent 7548c14 commit 949c228
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bus-mapping/src/circuit_input_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,14 +674,7 @@ pub fn build_state_code_db(
impl<P: JsonRpcClient> BuilderClient<P> {
/// Create a new BuilderClient
pub async fn new(client: GethClient<P>, circuits_params: FixedCParams) -> Result<Self, Error> {
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
Expand Down

0 comments on commit 949c228

Please sign in to comment.