Skip to content

Commit

Permalink
fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgo0018 committed Nov 30, 2023
1 parent 1e008be commit ad6f955
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/FundManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ contract FundManager is Ownable, FunctionsClient {
error InvalidStatusForThisCall();
error InvalidRequestId();

bytes public result;

constructor(
address chainlinkFunctionsRouter
) FunctionsClient(chainlinkFunctionsRouter) Ownable(msg.sender) {}
Expand Down Expand Up @@ -119,6 +121,8 @@ contract FundManager is Ownable, FunctionsClient {
// updateResult(circuitHash, result);
// }

result = response;

emit ChainlinkResponse(requestId, response, err);
}
}

0 comments on commit ad6f955

Please sign in to comment.