Would love to get this fixed / lesson 9 - unit testing #6031
Answered
by
alfaqi
Astronaut828
asked this question in
Q&A
-
|
Beta Was this translation helpful? Give feedback.
Answered by
alfaqi
Aug 21, 2023
Replies: 1 comment 4 replies
-
// require("@nomiclabs/hardhat-waffle")
// require("@nomicfoundation/hardhat-chai-matchers")
require("@nomicfoundation/hardhat-toolbox") install this package using
await expect(vrfCoordinatorV2Mock.fulfillRandomWords(0, raffle.target)).to.be.reverted
await expect(vrfCoordinatorV2Mock.fulfillRandomWords(1, raffle.target)).to.be.reverted
I didn't run into this issue before; I'm trying to solve this error. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to solve this, in
01-deploy-raffle.js
file I changedgetContractAt
togetContract
Actually, I did some changes, here is the whole code