Preconditions
- 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:
- Navigate to the hello folder in examples (./examples/hello), you should then see the ./src/hello.cpp file
- Run following commands:
$ mkdir build
$ cd build
$ cmake ..
$ make
- This will generate two files:
- The compiled binary wasm, hello.wasm
- The generated ABI file, hello.abi