Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(levm): change error to empty bytes in ecrecover (#1570)
**Motivation** We should return empty bytes when there are errors in the `libsecp256k1` functions. Errors should only be returned in cases of analysis or cutting. **Description** Previously, we returned `PrecompileError::ParsingInputError` when `Message::parse_slice` or `Signature::parse_standard_slice` failed. Also, we were inconsistent, sometimes returning an error and other times returning empty bytes. Now, we return `Bytes::new()` whenever the `libsecp256k1` functions fail.
- Loading branch information