Skip to content

Commit

Permalink
Merge pull request #142 from Concordium/create-dir
Browse files Browse the repository at this point in the history
Create directory when running create-initial-accounts.
  • Loading branch information
abizjak authored Nov 22, 2023
2 parents a8afb73 + 2e7bc6f commit 1e4ae31
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 1e4ae31

Please sign in to comment.