I am attempting to utilize the VRFv2Consumer.sol file from chainlink. ALL of my transactions are reverting with the error: "Gas estimation failed: 'execution reverted'....If you wish to broadcast, you must set the gas limit manually."
When I deploy the contract and fund it with LINK, I attempt to check the balance of the contract with 'balanceOf' method but it says the balance is zero after I fund it.
I think that this transaction throws an error because the owner of the subscription isn't the same that the caller of the addConsumer, but I'm not sure, btw there is an example on Chainlink VRF docs that you could follow that I think could help you.
https://docs.chain.link/vrf/v2/subscription/examples/programmatic-subscription