LESSON 9: Error Running Test [15:35:49] #779
-
| Making reference to this function in VRFCoordinatorV2Mock.sol
====================================================================================== There is no apparent reason for the test to break as my setup, dependencies and script are in theory identical to the one in the video besides from running all tests succesfully until now. | Below is my function
====================================================================================== | Here is the setup
====================================================================================== Any ideas of what I may be missing here, please? Should I define, import or declare a consumer()? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 15 replies
-
Beta Was this translation helpful? Give feedback.
-
Which line is erroring? If you can't find out from the stack trace, can you do some console.logs to find out? Also, please don't take screenshots of errors, please copy-paste them. |
Beta Was this translation helpful? Give feedback.
-
@DorianDaSilva Try doing this:
|
Beta Was this translation helpful? Give feedback.
-
@PatrickAlphaC @ali-thegilfoyle @krakxn Additionally I attempted to remove the await keyword from the problem function
===================================================================================== It passes since it skips this section as seen below | However, I still get the same error but this time it is pointing to a code line in provider/node.ts
Could it be related to a provider issue or is this irrelevant to the issue? |
Beta Was this translation helpful? Give feedback.
-
Hi, I running to the same issue today, searched on google and found "https://ethereum.stackexchange.com/questions/131426/chainlink-keepers-getting-invalidconsumer", I tried "yarn add --dev @chainlink/contracts@0.4.0" and it resolves the issue. |
Beta Was this translation helpful? Give feedback.
Which line is erroring? If you can't find out from the stack trace, can you do some console.logs to find out?
Also, please don't take screenshots of errors, please copy-paste them.