How to compile a contract via CLI


You have the source of your contract saved in one of your local folders, e.g. ./examples/hello For details on how to create your first contract follow this tutorial here

Follow these steps to compile your contract:

1.Navigate to the hello folder in examples (./examples/hello), you should then see the ./src/hello.cpp file

2.Now run following commands:

  • $ mkdir build
  • $ cd build
  • $ arisen-cpp -abigen ../src/hello.cpp -o hello.wasm -I ../include/

3.This will generate two files:

  • The compiled binary wasm, hello.wasm
  • The generated ABI file, hello.abi