Skip to content

Commit

Permalink
Use augmented assignment operators in template
Browse files Browse the repository at this point in the history
Resolves #29
  • Loading branch information
rahulyadav-57 committed May 2, 2024
1 parent 62af9f2 commit bb57423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constant/template/tact/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bb57423

Please sign in to comment.