smartcontractkit / hardhat-starter-kit

A repo for boilerplate code for testing, deploying, and shipping chainlink solidity code.
MIT License
1.21k stars 491 forks source link

Removed unnecessary usage of Link token interface #103

Closed bobanm closed 2 years ago

bobanm commented 2 years ago

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 commented 2 years ago

Great PR! Thank you!