Copy-paste fix pattern
fn main() {
string text = "125"
u256 value = parse_u256_or(text, zero)
save value
}
ClosedBit Docs
ClosedBit error docs
Value type mismatch. A value was passed where the target function, variable, or operator expected a different type.
A value was passed where the target function, variable, or operator expected a different type.
Convert explicitly with parse helpers or to_string, and keep u256, i256, f64, string, and bool lanes separate.
fn main() {
string text = "125"
u256 value = parse_u256_or(text, zero)
save value
}