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
Our implementation for the mutability check does not cover all cases needed and needs a major overhaul. The following contract, for instance, should not work because test is not a view function.
contractC {
bool x;
int[4] a;
function test() publicviewreturns (int) {
returnfoo()[1];
}
function foo() internalreturns (int[4] storage) {
x =true;
return a;
}
}
The text was updated successfully, but these errors were encountered:
Our implementation for the mutability check does not cover all cases needed and needs a major overhaul. The following contract, for instance, should not work because
test
is not a view function.The text was updated successfully, but these errors were encountered: