Skip to content

Commit

Permalink
Merge pull request #932 from tonlabs/upd-readme
Browse files Browse the repository at this point in the history
Clarify deployment process for contracts with ABI 2.4
  • Loading branch information
IgorKoval authored Mar 21, 2024
2 parents 662b635 + d1fff98 commit b2da87b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## 0.36.6

- Improved documentation on deploying contracts using ABI version 2.4.

## 0.36.5

- Fixed output of `getconfig` command. Now it print `{}` instead of `null`
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ license = 'Apache-2.0'
name = 'tonos-cli'
readme = 'README.md'
repository = 'https://github.com/tonlabs/tonos-cli'
version = '0.36.5'
version = '0.36.6'
default-run = 'tonos-cli'

[features]
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,8 @@ Contract address uniquely identifies the contract on the blockchain. Contract ba
Contract address is generated based on contract TVC file and selected keys. To get a different address for the same type of contract, use different keys.
> **Note**: For contracts with ABI 2.4, you should use the flag `--save` to insert the deployment public key into the TCV file.
> **Note**: If your contract has static variables, they can be initialized through [TVM linker](https://github.com/tonlabs/TVM-linker#5-initialize-static-variables-in-compiled-contract) before deployment.
Use the following command to generate the contract address:
Expand Down Expand Up @@ -990,6 +992,8 @@ Succeeded
## 4.2. Deploy contract
> **Note**: For contracts using ABI 2.4, it is necessary to first insert the deployment public key into the TCV file. This can be achieved using the `genaddr` function.
> **Note**: If your contract has static variables, they can be initialized with [genaddr command](#41-generate-contract-address) before deployment.
Use the following command to deploy a contract:
Expand Down

0 comments on commit b2da87b

Please sign in to comment.