Function treated as state variable #114
Labels
ast
Abstract Syntax Tree
bug
Something isn't working
future work
Something we should do in the future
high priority
High Priority Tasks
Old versions of solidity contracts use for fallback and receive (sometimes even having revert) following function syntax
Current AST parsing will fail if function like above is reached. It will fail under state variable discovery (which is weird).
So far, only investigating potential solutions. Most likely this will be related to grammar file not supporting functions like that. If that's the case, we'll branch off grammar from solidity externals and start maintaining our own (or just apply patches once we sync external repo).
If it's grammar issue, it's in fact, not issue but no longer supported functionality and therefore we cannot file any bugs.
If it's due to antlr-go, then we need to file bug to antlr or fork it off.
It happens very rarely, only with old contracts.
The text was updated successfully, but these errors were encountered: