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

Removed unnecessary usage of Link token interface #103

Merged
merged 1 commit into from
Jun 10, 2022

Conversation

bobanm
Copy link
Contributor

@bobanm bobanm commented Jun 9, 2022

Link token interface was referenced in RandomNumberConsumerV2 contract and therefore also required by the deploy script. However, for VRF v2 to provide randomness, a consuming contract does not need to be aware of the Link token, as payment for the service is handled on subscription level.

I removed dependencies on Link contract, to make the code leaner and gas friendly 😎

@PatrickAlphaC
Copy link
Contributor

Great PR! Thank you!

@PatrickAlphaC PatrickAlphaC merged commit ee56588 into smartcontractkit:main Jun 10, 2022
@bobanm bobanm deleted the remove-link-interface branch June 10, 2022 14:31
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

Successfully merging this pull request may close these issues.

None yet

2 participants