Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nonast committed Mar 4, 2023
1 parent 4f656f1 commit f7e8887
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ol/genesis-tools/src/wizard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,13 @@ impl GenesisWizard {
let snapshot_path = if Confirm::new()
.with_prompt("Do we need to download a new legacy snapshot?")
.interact()? {
self.download_snapshot(&app_config)?
} else {
// TODO(Nima): Instead of using a test, let's ask the user for the patht to a snapshot
Input::new().with_prompt("Enter the (absolute) path to the snapshot:").interact_text()?
// ol_types::fixtures::get_test_snapshot()
};
self.download_snapshot(&app_config)?
} else {
// TODO(Nima): Instead of using a test, let's ask the user for the patht to a snapshot
let input = Input::new().with_prompt("Enter the (absolute) path to the snapshot:").interact_text()?;
PathBuf::from_str(&input)?
// ol_types::fixtures::get_test_snapshot()
};

// do the whole genesis workflow and create the files
run::default_run(
Expand Down

0 comments on commit f7e8887

Please sign in to comment.