From 20b44e4423755bad399f67fadf6b6c218ed23e94 Mon Sep 17 00:00:00 2001 From: kkahina Date: Thu, 29 Aug 2024 17:28:43 +0100 Subject: [PATCH] fixe Arrays.zol --- test/contracts/Arrays.zol | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/contracts/Arrays.zol b/test/contracts/Arrays.zol index 9d5c51681..8f83d2005 100644 --- a/test/contracts/Arrays.zol +++ b/test/contracts/Arrays.zol @@ -12,9 +12,10 @@ contract Assign { function add(secret uint256 value) public { - - b[index] += value; - a += b[index]; + known a += value; + b[index] = 0; + index++; + b[index] = value; } function remove(secret uint256 value) public {