Error while testing for checkupKeep and performUpkeep using mocks #5702
kaushikc44
started this conversation in
General
Replies: 2 comments 1 reply
-
@kaushikc44 Please check this #1375 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi I went throught the thread however upon going through the VRFCoordinatormocks I could see the construct only takes link address as the parameter however according to the course we are providing base fee and gas price link. |
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
-
VM Exception while processing transaction: reverted with custom error 'InvalidConsumer()'
at VRFCoordinatorV2Mock.onlyValidConsumer (@chainlink/contracts/src/v0.8/mocks/VRFCoordinatorV2Mock.sol:72)
at VRFCoordinatorV2Mock.requestRandomWords (@chainlink/contracts/src/v0.8/mocks/VRFCoordinatorV2Mock.sol:147)
at Raffle.performUpkeep (contracts/Raffle.sol:90)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at runNextTicks (node:internal/process/task_queues:65:3)
at listOnTimeout (node:internal/timers:528:9)
at processTimers (node:internal/timers:502:7)
at HardhatNode._mineBlockWithPendingTxs (node_modules\hardhat\src\internal\hardhat-network\provider\node.ts:1840:23)
at HardhatNode.mineBlock (node_modules\hardhat\src\internal\hardhat-network\provider\node.ts:517:16)
at EthModule._sendTransactionAndReturnHash (node_modules\hardhat\src\internal\hardhat-network\provider\modules\eth.ts:1532:18)
I am getting this as an error the chainlink version I am using is 0.6.1 code is almost the same as mentioned in the video.
Beta Was this translation helpful? Give feedback.
All reactions