Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add default contract name clarifier in how to deploy smart contract [docs] #9151

Merged
merged 3 commits into from
May 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ Deploy an EOSIO contract
Execute:

```sh
cleos set contract contract_account contract_directory_path
cleos set contract contract_account contract_folder [wasm-file] [abi-file]
```

Replace the `contract_directory_path` with the path points to your contract folder
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.