From bb574238386937ddca108240b21923d64f35515f Mon Sep 17 00:00:00 2001 From: Rahul Yadav Date: Thu, 2 May 2024 15:13:43 +0530 Subject: [PATCH] Use augmented assignment operators in template Resolves #29 --- src/constant/template/tact/contracts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constant/template/tact/contracts.ts b/src/constant/template/tact/contracts.ts index 5db4681..fe5ff30 100644 --- a/src/constant/template/tact/contracts.ts +++ b/src/constant/template/tact/contracts.ts @@ -27,7 +27,7 @@ contract TactCounter with Deployable { } receive(msg: Add) { - self.counter = (self.counter + msg.amount); + self.counter += msg.amount; } get fun counter(): Int {