Skip to content

Commit

Permalink
Create directory when running create-initial-accounts.
Browse files Browse the repository at this point in the history
  • Loading branch information
abizjak committed Nov 20, 2023
1 parent dea44da commit e76b581
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/v2_create_initial_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ async fn main() -> anyhow::Result<()> {
App::from_clap(&matches)
};

std::fs::create_dir_all("created-accounts").context("Unable to create output directory.")?;

let ip_data: IpData<IpPairing> = serde_json::from_str(
&std::fs::read_to_string(app.idp).context("Could not read the keys file.")?,
)
Expand Down

0 comments on commit e76b581

Please sign in to comment.