Copy-paste fix pattern
fn main() {
string text = "42"
u256 value = parse_u256_or(text, zero)
save value
}
ClosedBit Docs
ClosedBit error docs
Value type mismatch. A value reached an operator or function that expects a different type.
A value reached an operator or function that expects a different type.
Convert explicitly, pass the right kind of value, or use the matching helper for strings, arrays, integers, or floats.
fn main() {
string text = "42"
u256 value = parse_u256_or(text, zero)
save value
}