Lesson 9: Error: VM Exception while processing transaction: reverted with custom error 'InvalidConsumer()', when unit testing #4823
BChainbuddy
started this conversation in
General
Replies: 1 comment 1 reply
-
please, see this issue #4440 (comment) |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello I have been battling couple of days now with this problem. Error occurs in the Lesson 9 when we unit test.
When i run hh test --grep "doesn't allow entrance when raffle is calculating", i get this error:
This is the part of the function I have problem with(everything till this works normally):
Here is the whole Raffle.test.js file:
My raffle.sol file:
And my 01-deploy-raffle.js file:
Thanks everyone in advance, I've tried everything but nothing seems to work.
Beta Was this translation helpful? Give feedback.
All reactions