Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VRFCoodinator Mock for new 2_5 version #28

Open
CaiqueRibeiro opened this issue May 15, 2024 · 1 comment
Open

VRFCoodinator Mock for new 2_5 version #28

CaiqueRibeiro opened this issue May 15, 2024 · 1 comment

Comments

@CaiqueRibeiro
Copy link

I'm doing Cyfrin lessons for "Smart Contract Lottery", but I was having trouble using VRFCoordinatorV2Mock. It already exists in official chainlink repository, but I could not find it in this one. Because of it I was not able to do tests with foundry (I'm using de VRF 2_5 in my contract file).

I made myself some adjusts in src/v0.8/dev/vrf/SubscriptionAPI.sol and created a new VRFCoordinatorV2_5Mock.sol in same repository of VRFCoordinatorV2Mock.sol and could make it work for tests.

I don't know if it is going to be release in a newer version of this repo, but if not, I can send a PR here to verify if my changes to SubscriptionAPI.sol won't break anything.

@RamanSB
Copy link

RamanSB commented May 20, 2024

Hi @CaiqueRibeiro I've raised this PR, feel free to copy and paste it in and let me know how you get on, I've used it to complete the Smart Contract Lottery lesson.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants