Copy-paste fix pattern
fn main() {
u256 i = 0
while (i < 1000) {
i += 1
}
save i
}
ClosedBit Docs
ClosedBit error docs
Loop safety budget exceeded. A loop ran past the compiled runtime safety budget.
A loop ran past the compiled runtime safety budget.
Add a real exit condition, lower the work per frame, or use an explicit performance profile for intentional heavy loops.
fn main() {
u256 i = 0
while (i < 1000) {
i += 1
}
save i
}