Allow users to enter arguments for deploy method in neo-one build
command
#2516
Labels
area/cli
Categorize issue or PR as cli (@neo-one/cli) related
good first issue
kind/feature
Categorizes issue or PR as related to a new feature.
priority/important-longterm
Important over the long term, but may not be staffed.
If a contract's deploy method (the constructor) has any required arguments then the
build
command won't work because it doesn't accept any arguments from the user like thedeploy
command does. The easy solution for the user is to either have no required args for constructor, or have default arguments for constructor just for testing, or to not use the build command and instead use the other CLI commands to do the same thing (start network
,deploy
, etc.)The best solution is to have the build command prompt the user for arguments just like it does when using the deploy command, if there are any required args for deployment. So see code in
runMigration.ts
to see how we prompt the user for argumentsThe text was updated successfully, but these errors were encountered: