Search…
Setup Environment
To follow this tutorial, you will need to set up some stuff on your computer.
Substrate Prerequisites
To get started, you need to make sure your computer is set up to build Substrate. If you are using OSX or most popular Linux distros, you can do it by running:
1
curl https://sh.rustup.rs -sSf | sh -s -- -y
Copied!
1
rustup target add wasm32-unknown-unknown --toolchain stable
2
rustup component add rust-src --toolchain nightly
3
rustup toolchain install nightly-2020-06-01
4
rustup target add wasm32-unknown-unknown --toolchain nightly-2020-06-01
Copied!
The final tool we will be installing is the ink! command line utility which will make setting up Substrate smart contract projects easier.
You can install the utility using Cargo with:
1
cargo install --git https://github.com/hicommonwealth/cargo-contract cargo-contract --force
Copied!
You can then use cargo contract --help to start exploring the commands made available to you.
Note: The ink! CLI is under heavy development and some of its commands are not implemented, yet!
Last modified 2mo ago
Export as PDF
Copy link