Lesson 9: error running tests - await raffle.performUpkeep("0x")
#835
-
================================================================================== Environment:
Dependencies:
================================================================================== Replicate the error: | Run ================================================================================== Problem: | Tests containing ================================================================================== Any help is welcome. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
@DorianDaSilva Did you check this one: #359 |
Beta Was this translation helpful? Give feedback.
-
I think by now you would have tried various solutions, if so: just clone the repo from the full course and check if there is still an error. Let me know how it goes |
Beta Was this translation helpful? Give feedback.
-
Assuming you’re happy to import Step 1 Run Step 2 Replace your VRFCoordinatorV2Mock.sol file content with: // SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@chainlink/contracts/src/v0.8/mocks/VRFCoordinatorV2Mock.sol"; Step 3 Delete your artifacts and cache directories. Step 4 Fix typo on line 29 in 01-deploy-raffle.js ( Step 5 On line 78 in raffle.test.js, change If you insist on writing the |
Beta Was this translation helpful? Give feedback.
Assuming you’re happy to import
VRFCoordinatorV2Mock
from the@chainlink/contracts
package, the following changes fix your code:Step 1
Run
yarn add @chainlink/contracts --dev
Step 2
Replace your VRFCoordinatorV2Mock.sol file content with:
Step 3
Delete your artifacts and cache directories.
Step 4
Fix typo on line 29 in 01-deploy-raffle.js (
subscritpionId
->subscriptionId
.)Step 5
On line 78 in raffle.test.js, change
interval.toNumber() + 1
tointerval.toNumber() - 1
.If you insist on writing the
VRFCoordinatorV2Mock
code (rather than importing it from the@cha…