KeyError
when using expressions that are not Name
or literals as reason string of assert
or raise
#3251
Labels
bug - type 0
compiler halts or panics instead of generating code
Version Information
vyper --version
): 0.3.8+commit.02339dfdpython --version
): 3.8.0What's your issue about?
When using a storage variable as reason string of
assert
orraise
, instead of compiling successfully , aKeyError
is returned.The error seems to come from the fact that the Statement Annotation Visitor does not visit the
msg
field ofassert
orraise
while the codegen for non "trivial" nodes relies on the fact that the node should have been annotated.For example, compiling the following two contracts results in the two respective outputs
The text was updated successfully, but these errors were encountered: