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 buildLast updated
Was this helpful?