Using Chainlink VRF version 2 in a not-so-special NFT contract
… and deploying it on Polygon using Hardhat.
May 29, 202216 min read15

Search for a command to run...
Series
This 2-part series covers how to use Chainlink's Verifiable Random Function (v2) in your smart contract along with testing the smart contract with mocks and deploying on Polygon's Mumbai Testnet.
… and deploying it on Polygon using Hardhat.

This article will be short (hopefully) and try to answer one of the burning questions of developing a smart contract which uses Chainlink Verifiable Random Function – “How do I test my smart contract which uses Chainlink VRF?”. To be frank, it is not...