Repository: bluealloy/revm (language: rust)

Issue:
Fix error type return on `modexp`'s exp overflow
`ModexpExpOverflow` (as defined [here](https://github.com/bluealloy/revm/blob/66adad00d8b89f1ab4057297b95b975564575fd4/crates/wiring/src/precompile.rs#L163)) should be returned [here](https://github.com/bluealloy/revm/blob/66adad00d8b89f1ab4057297b95b975564575fd4/crates/precompile/src/modexp.rs#L82).


Discussion / hints:

Fix patch:
diff --git a/crates/precompile/src/modexp.rs b/crates/precompile/src/modexp.rs
index b4d2987958..ac8aea29d1 100644
--- a/crates/precompile/src/modexp.rs
+++ b/crates/precompile/src/modexp.rs
@@ -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.


Test patch: