neo-one
neo-one copied to clipboard
Allow users to enter arguments for deploy method in `neo-one build` command
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 the deploy
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 arguments