chainlink icon indicating copy to clipboard operation
chainlink copied to clipboard

[FEAT] Locally Testing VRF Direct Funding Method

Open nour-karoui opened this issue 3 years ago • 4 comments

Description I have implemented the vrf v2 direct funding method, following the documentation: VRF V2 Direct Funding I tested on Remix and everything is working properly. However, I couldn't test locally with Ganache because I couldn't find a mock for the VRFV2Wrapper.

Motivation I tried mocking the VRFV2Wrapper mock with the coordinator but it didn't work

Justification Create a VRFV2WrapperMock to test locally with Ganache

nour-karoui avatar Dec 19 '22 09:12 nour-karoui

Hi Nour, thanks for your suggestion. We are currently working on the document for VRF v2 mock contract, and a new unit test about it will be added in repo hardhat-starter-kit in the future.

QingyangKong avatar Dec 19 '22 14:12 QingyangKong

Thank you very much

nour-karoui avatar Dec 19 '22 15:12 nour-karoui

@QingyangKong — bumping this to see if there's any movement on creating a mock for testing randomness with chainlink for folks using the direct funding method?

salvinoarmati avatar Jan 04 '23 00:01 salvinoarmati

Implemented in hardhat-starter-kit, closing this issue.

andrejrakic avatar Jan 13 '23 17:01 andrejrakic