Building Smart Contracts

Install cargo-contract

To build the Substrate smart contract project we will need CLI utility

$ rustup component add rust-src --toolchain nightly
$ cargo install cargo-contract --vers ^0.11 --force --locked

๐Ÿงช Test

To test your smart contract, run the following command

$ cargo test

๐Ÿ—๏ธ Build

To compile your smart contract, run the following command

$ cargo +nightly contract build

โ€‹