Skip to content

Commit

Permalink
fix: create stores directory at startup
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Gellis <simongellis@gmail.com>
  • Loading branch information
SupernaviX committed Feb 7, 2025
1 parent 0b50bef commit f3f7a8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions firefly-cardanoconnect/src/contracts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ impl ContractManager {
blockfrost: Option<BlockfrostClient>,
) -> Result<Self> {
fs::create_dir_all(&config.components_path).await?;
fs::create_dir_all(&config.stores_path).await?;
let ledger = blockfrost.map(|client| {
let ledger = BlockfrostLedger::new(client);
Ledger::Custom(Arc::new(Mutex::new(ledger)))
Expand Down

0 comments on commit f3f7a8b

Please sign in to comment.