From 2e4438f68208c8182d2b85dbd70266a214115f5f Mon Sep 17 00:00:00 2001 From: Anton Trunov Date: Wed, 13 Mar 2024 23:34:35 +0400 Subject: [PATCH] chore: update tact --- CHANGELOG.md | 9 +++++++- package.json | 2 +- .../counter/contracts/contract.tact.template | 2 +- yarn.lock | 21 ++++++++++++------- 4 files changed, 24 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 537e7dd..1a7dd23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Changed + +- Changed `@tact-lang/compiler` dependency to be `^1.2.0` instead of `^1.1.5` +- Updated the Tact counter template to use the new `+=` operator from Tact v1.2.0 + ## [0.17.0] - 2024-03-01 This release contains a breaking change. @@ -237,4 +244,4 @@ This release contains a breaking change. ### Fixed -- File selection (compilation files in `build` and scripts in `run`) now accepts CLI argument hints in any case \ No newline at end of file +- File selection (compilation files in `build` and scripts in `run`) now accepts CLI argument hints in any case diff --git a/package.json b/package.json index 55d51f2..37b0678 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ }, "dependencies": { "@orbs-network/ton-access": "^2.3.3", - "@tact-lang/compiler": "^1.1.5", + "@tact-lang/compiler": "^1.2.0", "@ton-community/func-js": "^0.6.3", "@tonconnect/sdk": "^2.1.3", "arg": "^5.0.2", diff --git a/src/templates/tact/counter/contracts/contract.tact.template b/src/templates/tact/counter/contracts/contract.tact.template index ea6b9b3..5eb553b 100644 --- a/src/templates/tact/counter/contracts/contract.tact.template +++ b/src/templates/tact/counter/contracts/contract.tact.template @@ -16,7 +16,7 @@ contract {{name}} with Deployable { } receive(msg: Add) { - self.counter = (self.counter + msg.amount); + self.counter += msg.amount; } get fun counter(): Int { diff --git a/yarn.lock b/yarn.lock index b03772f..ce7a91e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -153,9 +153,9 @@ __metadata: languageName: node linkType: hard -"@tact-lang/compiler@npm:^1.1.5": - version: 1.1.5 - resolution: "@tact-lang/compiler@npm:1.1.5" +"@tact-lang/compiler@npm:^1.2.0": + version: 1.2.0 + resolution: "@tact-lang/compiler@npm:1.2.0" dependencies: "@ipld/dag-pb": 2.1.18 "@tact-lang/opcode": ^0.0.14 @@ -171,10 +171,10 @@ __metadata: path-normalize: ^6.0.10 prando: ^6.0.1 qs: ^6.11.0 - zod: ^3.20.2 + zod: ^3.22.4 bin: tact: bin/tact - checksum: 00950d5b760df59b4e437aa0987eb0e864a6d62d270ced6e34c10834577802a92fc1fe03d081e7b34482d91448dcd991d90a90f43ea962545676dd62f4e6edea + checksum: 8e9a55883c9550ba0bf2585c32e1da0e5f9c1f9947a31cd4d4cbf49df4980e6fbb13ed21469fba6ea6f895ab03d86dcec1ee73a8a9a303a395c2185b927e4d5f languageName: node linkType: hard @@ -212,7 +212,7 @@ __metadata: resolution: "@ton/blueprint@workspace:." dependencies: "@orbs-network/ton-access": ^2.3.3 - "@tact-lang/compiler": ^1.1.5 + "@tact-lang/compiler": ^1.2.0 "@ton-community/func-js": ^0.6.3 "@ton/core": ^0.56.0 "@ton/crypto": ^3.2.0 @@ -1888,9 +1888,16 @@ __metadata: languageName: node linkType: hard -"zod@npm:^3.20.2, zod@npm:^3.21.4": +"zod@npm:^3.21.4": version: 3.21.4 resolution: "zod@npm:3.21.4" checksum: f185ba87342ff16f7a06686767c2b2a7af41110c7edf7c1974095d8db7a73792696bcb4a00853de0d2edeb34a5b2ea6a55871bc864227dace682a0a28de33e1f languageName: node linkType: hard + +"zod@npm:^3.22.4": + version: 3.22.4 + resolution: "zod@npm:3.22.4" + checksum: 80bfd7f8039b24fddeb0718a2ec7c02aa9856e4838d6aa4864335a047b6b37a3273b191ef335bf0b2002e5c514ef261ffcda5a589fb084a48c336ffc4cdbab7f + languageName: node + linkType: hard