paritytech / substrate-website

BSD Zero Clause License
3 stars 13 forks source link

Command to instantiate smart contracts needs an additional argument. #339

Closed tadeohepperle closed 1 year ago

tadeohepperle commented 1 year ago

On https://docs.substrate.io/tutorials/smart-contracts/prepare-your-first-contract/ there is this command:

cargo contract instantiate --constructor new --args "false" --suri //Alice --salt $(date +%s)

To get the output shown below on the website, one would have to add the -x or --execute flag.

Proposed change:

cargo contract instantiate --execute --constructor new --args "false" --suri //Alice --salt $(date +%s)

The --execute flag should also be explained in the bullet points on the website right under the command.

tadeohepperle commented 1 year ago

Closing this, because I was using a newer version of cargo contract ( 3.2.0) while the website is for version 2.0.0. Maybe this could be updated in the future.