Skip to content

Commit

Permalink
math.unsigned: change uint256_from_dec_str to return a result, instea…
Browse files Browse the repository at this point in the history
…d of an option (#19041)
  • Loading branch information
blackshirt committed Aug 3, 2023
1 parent 5ec7ee9 commit ef5c3cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/math/unsigned/uint256.v
Expand Up @@ -382,7 +382,7 @@ pub fn (u_ Uint256) str() string {
}

// uint256_from_dec_str creates a new `unsigned.Uint256` from the given string if possible
pub fn uint256_from_dec_str(value string) ?Uint256 {
pub fn uint256_from_dec_str(value string) !Uint256 {
mut res := unsigned.uint256_zero
for b_ in value.bytes() {
b := b_ - '0'.bytes()[0]
Expand Down

0 comments on commit ef5c3cd

Please sign in to comment.