Identify error source in stacktrace for bad params in function call. #3482
grapevinegizmos
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my unit tests, I get errors like this, which I have come to recognize as a some kind of invalid parameter in a smart contract function call:
While the stack trace is useful in that it at least identifies which function of my test is faling, the line number which produced the error is not identified. Sometimes my 'before' setup code is pretty long, and to find the line that's causing the error I have insert several contract.log statemetns to determine which call is causing the error. Would it be possible simply to include the trace the line number of the test method (or if that's not possible, the name of the contract function called) that provoked the error?
Beta Was this translation helpful? Give feedback.
All reactions