Replies: 1 comment
-
I mixed up the two revert statement in my code, problem solved, thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
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, when I run the test for the withdraw function, it throws an error of
AssertionError: Expected transaction to be reverted with reason 'FundMe__NotOwner', but it reverted without a reason
The code works with
to.be.reverted
andto.be.revertedWithoutReason
. How can I edit the code so that the error is visible in the test as well?Here are the related code from the contract and the test:
Thank you so much!
Beta Was this translation helpful? Give feedback.
All reactions