Skip to content

Commit

Permalink
Replace PrecompileError variant
Browse files Browse the repository at this point in the history
  • Loading branch information
juanimedone committed Sep 23, 2024
1 parent f75998a commit 2200de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/precompile/src/modexp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ where

// Cast exponent length to usize, since it does not make sense to handle larger values.
let Ok(exp_len) = usize::try_from(exp_len) else {
return Err(PrecompileError::ModexpModOverflow.into());
return Err(PrecompileError::ModexpExpOverflow.into());
};

// Used to extract ADJUSTED_EXPONENT_LENGTH.
Expand Down

0 comments on commit 2200de9

Please sign in to comment.