Skip to content

Commit

Permalink
resolved: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mohiiit committed Nov 1, 2024
1 parent ad43767 commit c98c84a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/contract_clients/legacy_class.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Note: This code has been taken from the madara code-base.

use starknet_types_core::felt::Felt;

#[derive(Clone, Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
Expand Down
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ use crate::utils::{save_to_json, JsonValueType};

#[derive(Debug, Clone, Copy, ValueEnum)]
enum BootstrapMode {
Full,
Core,
SetupL1,
SetupL2,
Expand Down Expand Up @@ -93,7 +92,7 @@ pub struct CliArgs {
operator_address: String,
#[clap(long, env, action=ArgAction::SetTrue)]
dev: bool,
#[clap(long, env, value_enum, default_value_t = BootstrapMode::Full)]
#[clap(long, env, value_enum)]
mode: BootstrapMode,
#[clap(long, env)]
core_contract_address: Option<String>,
Expand All @@ -115,7 +114,6 @@ pub async fn main() {
let config = Config::init(&args).await;

let output = match args.mode {
BootstrapMode::Full => bootstrap(&args, &config).await,
BootstrapMode::Core | BootstrapMode::SetupL1 => {
let output = setup_core_contract(&args, &config).await;

Expand Down
2 changes: 1 addition & 1 deletion src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ fn get_config() -> CliArgs {
verifier_address: String::from(VERIFIER_ADDRESS),
operator_address: String::from(OPERATOR_ADDRESS),
dev: false,
mode: crate::BootstrapMode::Full,
mode: crate::BootstrapMode::SetupL1,
core_contract_address: None,
core_contract_implementation_address: None,
output_file: None,
Expand Down

0 comments on commit c98c84a

Please sign in to comment.