💡Migrating from Chainlink VRF
Quick and simple migration from Chainlink VRF!
Last updated
Quick and simple migration from Chainlink VRF!
Last updated
Already using Chainlink VRF? Here's how you can quickly and easily migrate to GelatoVRF.
While this migration option is available, be aware that it can lead to higher gas costs and added development intricacies. We advise this route only if:
You've already deployed a Chainlink VRF Consumer.
Your Chainlink VRF Consumer has the capability to update its Coordinator address.
Otherwise, for new integrations, we recommend directly implementing the Gelato VRF.
If you're set on migrating an existing Chainlink VRF Consumer:
Begin by creating your VRF task. In the "VRF Type" selection window, opt for "VRF Compatibility".
Choose the blockchain network for deployment.
You will then be asked to deploy your Adapter contract:
Once deployed, the app will show you the address to which the adapter contract was deployed. You now need to replace the old Coordinator address in your contract by this address.
Here’s a brief example of how you might implement such a function to update the vrfCoordinator in your Consumer Contract:
To facilitate the update of the Chainlink VRF Coordinator address in your smart contracts, you can reference the function from this deployed contract on Polygon.