Deploying a Smart Contract

Prerequisites

Ensure Olatte is installed correctly:

olatte --version

If this command fails, see Setting up your environment.

Deploying a smart contract

You can write Ola smart contracts using Ola-lang and compile them with olatte, Taking the vote_simple.ola contract as an example:

olatte compile path/to/vote_simple.ola path/of/output/dir

This command will generate a bin file and an abi file; the bin file is used for the deployment of the contract:

olatte deploy --network pre-alpha path/to/MyContract_bin.json

Last updated