Tip for M1 Users on VRFCoordinator #1288
JohnEMagee
started this conversation in
General
Replies: 1 comment 1 reply
-
Nice guide @JohnEMagee !! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Per usual when using the Mac M1, I'm (we?) are stuck using solidity ini the most recent version, for 0.8.12. This becomes tricky in the smart lottery because the chainlink-mix VRFCoordinator is still using 0.6.0. This one was actually EASIER to walk around than others have been in the past.
First - the link for the VRF Coordinator you want to use for Mac M1 is right here
Couple things you need to change.
One - change the pragma to
0.8.12
Secondly there's an import of VRFCoordinatorV2.sol from a dev folder in the git hub and the 0.6.0 also brings in LinkTokenInterface, so I did that for good measure as well
I copied my version 0.8.12 MockAggregator from the Fund Me lesson and both compiled without a hitch which may be the first 'no issue' compile I've had.
Not sure this will help anyone else but wanted to share in case.
Beta Was this translation helpful? Give feedback.
All reactions