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

Is VRFConsumerBaseV2Plus Upgradeable? #16491

Open
0xArowana opened this issue Feb 20, 2025 · 0 comments
Open

Is VRFConsumerBaseV2Plus Upgradeable? #16491

0xArowana opened this issue Feb 20, 2025 · 0 comments

Comments

@0xArowana
Copy link

I am upgrading my implementation of VRF v2 to v2.5. I am using ERC1967 proxies to upgrade my contract, and my implementation of VRF v2 made use of VRFConsumerBaseV2Upgradeable (and its __VRFConsumerBaseV2_init in my contract's initialize functions).

It looks like VRFConsumerBaseV2Plus does not have an analogous initializer, and a coordinator address is actually required in the constructor.

  1. Is there / will there be an upgradeable version of VRFConsumerBaseV2Plus that does not require a coordinator address in its constructor?
  2. Is the recommended approach to simply call setCoordinator within my initialize function?
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

1 participant