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
fun calculate(x: u256, y:u256, z:u256): u256 {
let y_prev = y;
if (z > 1000) {
y = y + 1;
} else {
y = y - 1;
};
if (y > y_prev) {
return x
} else {
return y
}
}
🐛 Bug
Code block like this
Decompile code
To reproduce
included-artifacts=none
Expected Behavior
y
should compare with its old valuey_prev
not itselfThe text was updated successfully, but these errors were encountered: