bluealloy / revm

Ethereum Virtual Machine written in rust that is fast and simple to use
https://bluealloy.github.io/revm/
MIT License
1.57k stars 511 forks source link

group optimism enum error variants in an op error type #1598

Closed mattsse closed 1 month ago

mattsse commented 1 month ago

currently optimism enum variants are feature-gated individually

https://github.com/bluealloy/revm/blob/0bf2d5679433e737905eb50a07a35bc6452b066a/crates/primitives/src/result.rs#L275-L306

It'd be easier if we have a single Op variant that wraps an op specific error