Skip to content

Tutorial - Compile Smart Contracts using the Ultra Smart Contract Toolkit Extension

Compiling smart contracts is very simple with the Ultra Smart Contract Toolkit.

Prerequisites

Goal

The goal of this tutorial is to compile smart contracts using the Ultra Smart Contract Toolkit extension.

How to Compile

There are two ways to compile your smart contract.

First way is to compile using the VS Code Status Bar. Make sure you have the .cpp file open and selected and click Compile at the bottom of VSCode.

Second way to compile is to use the Command Palette (F1) and search for Ultra: Build Contract.

Successful Compilation

If the compilation is successful, you won't see any errors in the output window for ultra-cpp.

Bad Compilation

If the compilation is successful unsuccessful, you will see various errors such as the ones below.

Compiled Files

Once the files are compiled you should see an abi and a wasm file next to your compiled smart contract.

For more information about .abi and .wasm files see the official EOS Network Foundation page

What's next?

The next tutorial will cover deploying smart contracts using the VS Code extension. See Deploy Smart Contract for more information.