foundry icon indicating copy to clipboard operation
foundry copied to clipboard

Treat invalid tx input as errors

Open mattsse opened this issue 1 year ago • 2 comments

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

mattsse avatar Aug 27 '25 09:08 mattsse

I can work on this ser

ongyimeng avatar Aug 27 '25 09:08 ongyimeng

I can work on this ser

Thanks!

zerosnacks avatar Aug 27 '25 09:08 zerosnacks