Skip to content

Conversation

@mablr
Copy link
Contributor

@mablr mablr commented Nov 27, 2025

Motivation

Towards #225

This would allow to get rid of AsEthApiError trait and its impls in Reth https://github.com/paradigmxyz/reth/blob/6598b88e0278a084eabad44573298d5f097b9244/crates/rpc/rpc-eth-types/src/error/api.rs#L53

Solution

  • Add is_gas_limit_too_high and is_gas_limit_too_high fns to InvalidTxError trait
  • Add default impls to InvalidTxError trait using as_invalid_tx_err

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@mablr mablr requested review from klkvr and mattsse as code owners November 27, 2025 23:48
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense

pending @klkvr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants