Developers
FAQRoadmapEcosystemDevelopers
1.0.0
1.0.0
  • Introduction
  • Definitions
  • Getting Started
    • Using docker
      • Install Docker
      • Build using Docker
    • Install without Docker
      • Prerequisites
      • Setting Up The Node
      • Interact With The Node
      • Building Smart Contracts
    • Deploying Our PoC
      • Asset Manager
    • Interest Calculation
    • Audit Report
  • API References
    • NFT Lend
    • NFT Rent
    • NFT Exchange
  • Community Links
    • Github
    • Twitter
    • Discord Community
    • Telegram Community
    • Telegram Channel
    • LinkedIn
Powered by GitBook
On this page
  • Install cargo-contract
  • ๐Ÿงช Test
  • ๐Ÿ—๏ธ Build

Was this helpful?

  1. Getting Started
  2. Install without Docker

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.8 --force --locked

๐Ÿงช Test

To test the smart contract, run the following command

cargo +nightly test

๐Ÿ—๏ธ Build

To compile the smart contract, run the following command

cargo +nightly contract build

PreviousInteract With The NodeNextDeploying Our PoC

Last updated 3 years ago

Was this helpful?