From ca210c698304563023dccd90e6ac7524acf79f73 Mon Sep 17 00:00:00 2001 From: mikhailUshakoff Date: Fri, 15 Mar 2024 00:48:19 +0100 Subject: [PATCH 1/4] Clarify deployment process for contracts with ABI 2.4 --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index f6cfb8ae..056fbd03 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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: From c20e5a824b3deeeb78a058354aac9a756cb5c885 Mon Sep 17 00:00:00 2001 From: mikhailUshakoff <75278099+mikhailUshakoff@users.noreply.github.com> Date: Wed, 20 Mar 2024 21:50:10 +0100 Subject: [PATCH 2/4] Increment version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b9d46603..86e4c771 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] From 7ba700b8e58e7786839dd7dd83dff69eee514abe Mon Sep 17 00:00:00 2001 From: mikhailUshakoff <75278099+mikhailUshakoff@users.noreply.github.com> Date: Wed, 20 Mar 2024 21:53:03 +0100 Subject: [PATCH 3/4] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b7b480b..fbd214b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` From d1fff98f5dca0c49590db70727168f5ab7b252b9 Mon Sep 17 00:00:00 2001 From: tonjen Date: Wed, 20 Mar 2024 23:38:52 +0000 Subject: [PATCH 4/4] Preparing to merge with the master #nolog --- Cargo.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 828a2673..4e0d4350 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3347,7 +3347,7 @@ dependencies = [ [[package]] name = "tonos-cli" -version = "0.36.5" +version = "0.36.6" dependencies = [ "assert_cmd", "async-trait",