-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[SMRT] SubscriptionId in VRF and Automations #13099
Comments
Hello, i'm having this issue too! :) |
As far as I understand, you can now only get a subscription ID for VRF v2.5. There is a guide on how to migrate from v2: https://docs.chain.link/vrf/v2-5/migration-from-v2#overview But there is no mock interface for v2.5 (or I couldn’t find it). So now you have two options:
I think option 1 is easier. |
Chainlink documentation is now updated and they have included a example which works with v2.5 and subId of |
@AayushOjha thanks for sharing this. found this really helpful |
In VRF and Automations contract there is one parameter
subscriptionId
inrequestRandomWords
ofVRFCoordinatorV2Interface
interface andaddConsumer
function fromVRFCoordinatorV2Mock
interface.The issue is that the type of
subscriptionId
isuint64
but the id provided by chainlink site is way to bige.g.
15356376269897563744780985323350096414521302577903754215356556594835422566595
Something like this which leads to error
Version
The text was updated successfully, but these errors were encountered: