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

Task omnichain: add confirmation prompt before overwriting files #23

Open
lumtis opened this issue Jul 25, 2023 · 0 comments
Open

Task omnichain: add confirmation prompt before overwriting files #23

lumtis opened this issue Jul 25, 2023 · 0 comments

Comments

@lumtis
Copy link
Member

lumtis commented Jul 25, 2023

When following the tutorial:
https://www.zetachain.com/docs/developers/omnichain/tutorials/withdraw/#set-up-your-environment
The command

npx hardhat omnichain Withdraw recipient

will erase the file content to be written if they already exist.

It might eventually be a concern since there are many sections of the tutorial that write into deploy.ts and the command erase deploy.ts content.

My suggestion would be to add a verification for the command to ask for confirmation.

npx hardhat omnichain Withdraw recipient
deploy.ts already exist, do you want to continue and overwrite the file?
@lumtis lumtis changed the title Task omnichain erases files Task omnichain: add confirmation prompt before overwriting files Jul 25, 2023
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