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
"Go to references" works well with assembly for local variables. For example, using it with value here correctly includes the assembly line:
uint value;
assembly {
value =1
}
But if you do the same thing with a storage variable, then it doesn't work:
contractFoo {
uintpublic x;
function inc() public {
x++;
}
function set(uint_x) public {
x = _x;
}
function setWithAssembly(uint_x) public {
assembly {
sstore(x.slot, _x)
}
}
}
Here, the references list for x includes x++ and x = _x, but it doesn't include sstore(x.slot, _x).
The text was updated successfully, but these errors were encountered:
"Go to references" works well with assembly for local variables. For example, using it with
value
here correctly includes the assembly line:But if you do the same thing with a storage variable, then it doesn't work:
Here, the references list for
x
includesx++
andx = _x
, but it doesn't includesstore(x.slot, _x)
.The text was updated successfully, but these errors were encountered: