Developers
FAQRoadmapEcosystemDevelopers
main
main
  • Welcome to Vera
  • Definitions
  • ๐Ÿ‘‹Getting Started
    • Prerequisites
    • Setting Up The Node
    • Interact With The Node
    • Building Smart Contracts
    • Deploying Our PoC
  • Asset Manager
  • Intrest Calculation
  • ๐Ÿ—’๏ธ API References
    • NFT Lending
    • NFT Leasing
    • NFT Exchange
  • ๐Ÿ”—Useful links
    • Website
    • Github
    • Telegram
    • Twitter
Powered by GitBook
On this page
  • Install cargo-contract
  • ๐Ÿงช Test
  • ๐Ÿ—๏ธ Build

Was this helpful?

  1. Getting Started

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
PreviousInteract With The NodeNextDeploying Our PoC

Last updated 4 years ago

Was this helpful?

๐Ÿ‘‹