From ad6f9552bdeb4977a13fe460f937a0fc4883fea3 Mon Sep 17 00:00:00 2001 From: Yash Goyal Date: Thu, 30 Nov 2023 07:58:47 +0530 Subject: [PATCH] fixed a bug --- contracts/FundManager.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contracts/FundManager.sol b/contracts/FundManager.sol index 3a0ab8c..e2dc6a9 100644 --- a/contracts/FundManager.sol +++ b/contracts/FundManager.sol @@ -33,6 +33,8 @@ contract FundManager is Ownable, FunctionsClient { error InvalidStatusForThisCall(); error InvalidRequestId(); + bytes public result; + constructor( address chainlinkFunctionsRouter ) FunctionsClient(chainlinkFunctionsRouter) Ownable(msg.sender) {} @@ -119,6 +121,8 @@ contract FundManager is Ownable, FunctionsClient { // updateResult(circuitHash, result); // } + result = response; + emit ChainlinkResponse(requestId, response, err); } }