0

I am trying to learn solidity by doing a dice game, I found code online that I would like to start with however I am stuck with trying to get the definition of _vrfConsumerBase and _link. I am aware this code might be made with old chainlink code however I can't find any better sources.

1
  • Hi OliverPaine! Welcome to Ethereum Stackexchange! To get better help can you provide the contract as text? a link to a repository is good enough.
    – Ismael
    Sep 29 '21 at 15:35
0

well you have to put the values of the links and vrf, you can find the addresses here based on the network you are using:
https://docs.chain.link/docs/vrf-contracts/

Remember to fund your contract with links before running it

1
  • shoud've specified I did this like this: _vrfCoordinator = 0x3d2341ADb2D31f1c5530cDC622016af293177AE0; _link = 0xb0897686c545045aFc77CF20eC7A532E3120E0F1; but returned parser error expected identifier but got "=" Sep 29 '21 at 10:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.