Concordium / concordium-rust-sdk

Rust SDK for the Concordium blockchain.
https://docs.rs/concordium-rust-sdk/latest/concordium_rust_sdk/
Mozilla Public License 2.0
13 stars 18 forks source link

v2_create_initial_accounts - create directory for keys if it doesn't exist #141

Closed mh-concordium closed 9 months ago

mh-concordium commented 9 months ago

Description It is required to manually create a directory for script to work on Windows.

Steps to Reproduce Build the tool and try to create accounts with 1 TPS.

Expected Result There should be 1 account per second created.

Actual Result

Script fails:

PS C:\concordium-tools\scripts\create-new-accounts> .\v2_create_initial_accounts.exe --node http://localhost:20000 --identity-provider .\ip-data-0.json --tps 1
#:Transaction hash
------------------
0:ea189024d7767cf9f68fd5960367673296a418c468fd1881f6f263f399d61262
Error: Could not write created account keys.

Caused by:
    The system cannot find the path specified. (os error 3)

Creating directory with the name created-accounts fixes the issue