Deploy a Smart Contract
Overview
This guide provides instructions to deploy a smart contract.
Prerequisites
- Install the currently supported version of
clio
info
| The clio
tool is bundled with the Wire software. Installing Wire Core will also install the clio tool.
REMINDER
The install process has already set up the wallet for the root user. To interact with clio, ensure you are on the root user. Run sudo su -
to switch to the root user.
- Make sure your wallet is unlocked.
clio wallet unlock --name=default --password "$(cat path/to/password-file)"
Steps
Execute:
clio set contract <contract_account> <contract_folder> [wasm-file] [abi-file]
Replace the contract_folder
with the path that points to your contract folder.
Default contract name
| By default, clio
treats the last folder specified in contract_folder
as the contract name. Therefore, it expects .wasm
and .abi
files with that contract name as filename. This can be overridden with the optional wasm-file
and abi-file
parameters.