From 7f892c43e208209343af646ec56829ad421f88cf Mon Sep 17 00:00:00 2001 From: Piotr Ostrowski Date: Sat, 7 Sep 2024 21:15:29 +0200 Subject: [PATCH] start on full interop --- packages/foundry/contracts/FairDrop.sol | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/foundry/contracts/FairDrop.sol b/packages/foundry/contracts/FairDrop.sol index 330b130..bc359ee 100644 --- a/packages/foundry/contracts/FairDrop.sol +++ b/packages/foundry/contracts/FairDrop.sol @@ -31,14 +31,16 @@ contract FairDrop { /// @param _appId The World ID app ID /// @param _actionId The World ID action ID constructor( - IWorldID _worldId, + address _worldId, string memory _appId, - string memory _actionId + string memory _actionId, + address _wormhole ) { - worldId = _worldId; + worldId = IWorldID(_worldId); externalNullifier = abi.encodePacked( abi.encodePacked(_appId).hashToField(), _actionId ).hashToField(); + _wormhole; } /// @param signal An arbitrary input from the user, usually the user's wallet address (check README for further details)