Replies: 1 comment
-
By deleting "Fail" in the test function will fix this issue. |
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
-
My contract codes are as below:
When I use below codes to test (Situation 1):
I got below traces:
When I use below codes to test (Situation 2):
"vm.expectRevert(); " is supposed to expect any revert, but it did not work and I got the same traces.
The test only works when I use below codes (Situation 3):
My question is: Where is the extra "revert: " coming from???
Beta Was this translation helpful? Give feedback.
All reactions