bluealloy / revm

Rust implementation of the Ethereum Virtual Machine.
https://bluealloy.github.io/revm/
MIT License
1.59k stars 518 forks source link

Incorrect documentation for `State::take_bundle` #1709

Closed prestwich closed 2 weeks ago

prestwich commented 3 weeks ago

https://github.com/bluealloy/revm/blob/1ad860469755e3cf71383f45d71c3faaf61d3029/crates/revm/src/db/states/state.rs#L201-L209

documentation specifies that the function will panic under certain conditions, but the function will not panic even if those conditions are met