Error message was inconsistent, and not having enough information.
Also, constructor was throwing error with multiple error, which was harder to handle.
How did I fix it?
Change constructor not to throw
Added expected and actual where it make sense
How to test it?
Create invalid transaction and check if it doesn't throw
What was the problem?
Error message was inconsistent, and not having enough information. Also, constructor was throwing error with multiple error, which was harder to handle.
How did I fix it?
How to test it?
Create invalid transaction and check if it doesn't throw
Review checklist