Lesson 9: raffle.test AssertionError: expected '1' to equal '30' #1833
-
Hey! My unit test for checking correct interval is failing; AssertionError: expected '1' to equal '30'
I'm not sure why it sets the interval to 1 and not 30 like in the helper config. raffle.test.js helper-hardhat-config.js 01-deploy-raffle.js |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
In "01-deploy-raffle.js" line 42 waitConfirmations gets set to "1" because for some reason "network.config.blockConfirmations" returns a bool of "false". 1 In the "01-deploy-raffle.js" "network.config.blockConfirmations" has to be changed to "network.config.interval" 2 In the "helper-hardhat-config.js" all "intervals" have to be "blockConfirmations" |
Beta Was this translation helpful? Give feedback.
-
please provide raffle.sol |
Beta Was this translation helpful? Give feedback.
-
@asserules Push the code to GitHub and leave a link here I will check the issues. |
Beta Was this translation helpful? Give feedback.
-
Hey @asserules, please arrange the arguments in your deploy-raffle.js file in the same order as they appear in your constructor function in Raffle.sol |
Beta Was this translation helpful? Give feedback.
Hey @asserules, please arrange the arguments in your deploy-raffle.js file in the same order as they appear in your constructor function in Raffle.sol