Cyfrin / foundry-full-course-cu

GNU General Public License v3.0
2.88k stars 671 forks source link

Constructor of "VRFV2WrapperConsumerBase.sol" has 2 arguments instead of 1 #453

Closed Ciphadus7 closed 11 months ago

Ciphadus7 commented 11 months ago

In the video, the constructor takes a single argument: address _vrfCoordinator. In the updated code of VRFV2WrapperConsumerBase.sol, it takes two. Namely: constructor(address _link, address _vrfV2Wrapper) { LINK = LinkTokenInterface(_link); VRF_V2_WRAPPER = VRFV2WrapperInterface(_vrfV2Wrapper); }

Stuck at this point. Confused as to what it needs as the second argument.

PatrickAlphaC commented 11 months ago

Can you go to discussions instead of issues?