foundry
foundry copied to clipboard
Treat invalid tx input as errors
Component
Anvil
Describe the feature you would like
https://github.com/foundry-rs/foundry/blob/4e59f423070ddf6f316c44ee8cfe16e9c012b54c/crates/anvil/core/src/eth/transaction/mod.rs#L1037-L1037
should return alloy_rlp::Error::Custom("unexpected tx type")
https://github.com/alloy-rs/alloy/blob/dd6eae4795064d900b3537587179a1c93454c38e/crates/tx-macros/src/expand.rs#L571-L571
TODO
- replace unreachable! with errors
Additional context
assigning @ongyimeng
I can work on this ser
I can work on this ser
Thanks!