Closed AlbertoCentonze closed 2 months ago
After discussing offline with @AlbertoCentonze, I think we should make dev reasons "propagate" up the call stack. @DanielSchiavini wdyt?
I recently added this test to make sure the pretty_vm_reason
is propagated. It seems to pass fine: https://github.com/vyperlang/titanoboa/pull/195/commits/2dfdf53fff6584504c8ecb6ce7712d3062aa1d3d
The dev reason should definitely work the same way. Something like this? https://github.com/vyperlang/titanoboa/pull/207
What is the problem
boa.reverts(dev="error message")
does not always work as expected.How to reproduce
Minimized example from Curve contracts: Given a
pool
contract deployer:And a
math
contract deployer:The following code raises the error
ValueError: expected <dev: math not ok> but got None
:The above example can be tested on this link