From acbe25613979fd6df3c2fdc2ad24c73732ac3d42 Mon Sep 17 00:00:00 2001 From: Lydia Garms Date: Fri, 13 Sep 2024 15:29:57 +0100 Subject: [PATCH] fix: add constructor --- test/contracts/mapping-3.zol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/contracts/mapping-3.zol b/test/contracts/mapping-3.zol index 0f33bfe6..043f18b3 100644 --- a/test/contracts/mapping-3.zol +++ b/test/contracts/mapping-3.zol @@ -8,6 +8,10 @@ contract MyContract { secret uint256 private b; address public admin; + constructor() { + admin = msg.sender; + } + function assign(secret address param1, secret uint256 param2) public { unknown a[param1] += param2; }