- Rust: You need to have rust 1.81 or newer to be able to compile your contract:
rustup install 1.81
rustup default 1.81
rustup target add wasm32-unknown-unknown
- Next, you need to install the wasm-opt (to optimize WebAssembly files):
sudo apt install binaryen
cargo build --release
Once the compilation is complete, locate the wasm.opt.wasm
file in the target/wasm32-unknown-unknown/release
directory.
- Access Gear IDE using your web browser.
- Connect your Substrate wallet to Gear IDE.
- Upload the
wasm.opt.wasm
andapp.idl
files by clicking the "Upload Program" button.