From 3b2583e5393b3d7fcd4f58e49bc3d4e7ea208a8c Mon Sep 17 00:00:00 2001 From: sequent-dev-bot Date: Wed, 25 Nov 2026 22:49:09 +0000 Subject: [PATCH] Counter: add through a local --- Counter.vy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Counter.vy b/Counter.vy index 39e65cd15a..994779df75 100644 --- a/Counter.vy +++ b/Counter.vy @@ -5,7 +5,8 @@ count: public(uint256) @external def add(amount: uint256): - self.count += amount + new_count: uint256 = self.count + amount + self.count = new_count @external