To compile release version of the smart contract you can run:
Note: The above
buildcommand is setting a
targetflag to create a WebAssembly
Notice that your project directory now has a few additional items:
We recommend you to optimize your build artifact with the use of the next flags.
The above command is essentially setting special flags and optimizing the resulting
.wasm file. At the end of the day, it's simply a customized
cargo build --release command.
Windows users: please modify the above command as:
You can simpify this command by adding this flags to your
You can find an example here.