跳至主要内容
此页面是从英文翻译而来的。请注意,与原始页面相比,可能会出现错误或差异。真实的文档来源应始终是英文版本。

how to deploy a smart contract

Goal

Deploy an Antelope contract

Before you begin

  • Install the currently supported version of cleos

  • Unlock the wallet which contains the private key of the contract account

Steps

Execute:

cleos set contract contract_account contract_folder [wasm-file] [abi-file]

Replace the contract_folder with the path that points to your contract folder

[[info | Default contract name]] | By default, cleos 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.