You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really like the tuple solution for conditional statements.
Theres an uncovered edge case for Variable initializations because solidity wont allow you to reference a var before its type is decided. Basically this:
Error: Instrumented solidity invalid: :26:5: Error: Assignment necessary for type detection.
var z; (,z) = y ? (y,false) : (y,true);
^----^
To fix this you'd have to look down the tree and figure out what the type of the result of the ConditionalExpression is and initialize the var statement with it. It would be incredibly complicated.
Generalising this issue to contain all cases of valid solidity that we know we can't instrument...
These are either going to need edge cases coded, or use of
debug_traceTransaction
to avoid instrumentation all together.Hopefully, nothing here would be something realistically used in 'real' solidity contracts, and are just odds and ends for us to look at.
The text was updated successfully, but these errors were encountered: