Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local-accounts.json file issue when testing more than one contract in separate directories simultaneously #114

Open
Aishat-Akinyemi opened this issue Oct 21, 2022 · 0 comments

Comments

@Aishat-Akinyemi
Copy link

The Local-accounts.json file, which holds the accounts used for contract testing is created locally in the directory where one runs blast node start command.

At the same time, Only an instance of a local node can be run at once with the command, I cannot run nodes in different directories simultaneously, but once a node is running it is available globally.

Currently, local-accounts.json file has to be in each contract project otherwise testing with run blast test returns this error:
Cannot find module '../ProjectName/local-accounts.json' from 'node_modules/cudos-blast/utilities/account-utils.js’

work around
I copied and pasted the local-accounts.json into the project directory.

Question

Could the local-accounts.json be a global file, instead of local account file for each project, this way a single instance of node can be used for different projects simultaneously.

@Aishat-Akinyemi Aishat-Akinyemi changed the title Local-accounts.json file issue when testing 2 contracts in 2 directories Local-accounts.json file issue when testing more than one contract in separate directories simultaenously Oct 21, 2022
@Aishat-Akinyemi Aishat-Akinyemi changed the title Local-accounts.json file issue when testing more than one contract in separate directories simultaenously Local-accounts.json file issue when testing more than one contract in separate directories simultaneously Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant