Skip to content

feat: add error types for fee lane decoding in EVM operations#360

Merged
fgimenez merged 4 commits intomainfrom
fgimenez/lane-docoding-error-types
Oct 3, 2025
Merged

feat: add error types for fee lane decoding in EVM operations#360
fgimenez merged 4 commits intomainfrom
fgimenez/lane-docoding-error-types

Conversation

@fgimenez
Copy link
Copy Markdown
Member

@fgimenez fgimenez commented Sep 29, 2025

Closes: #356

@fgimenez fgimenez requested review from klkvr and mattsse September 29, 2025 16:06
Base automatically changed from fgimenez/bump-reth to main September 29, 2025 16:37
@fgimenez fgimenez force-pushed the fgimenez/lane-docoding-error-types branch from 7ea16c4 to 914ce1d Compare September 29, 2025 16:39
Comment thread crates/evm/src/error.rs Outdated
Comment on lines +10 to +14
FeeLaneDecoding(String),

/// Invalid EVM configuration.
#[error("invalid EVM configuration: {0}")]
InvalidEvmConfig(String),
Copy link
Copy Markdown
Contributor

@mattsse mattsse Sep 29, 2025

Choose a reason for hiding this comment

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

should we just keep box dyn error here @klkvr ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

makes sense, though I think those would never be constructed

Comment thread crates/evm/src/error.rs Outdated
Comment thread crates/evm/src/lib.rs
Comment on lines +116 to +118
self.inner.evm_env(header).map_err(|_| {
TempoEvmError::InvalidEvmConfig("failed to create EVM environment".to_string())
})
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

those should be unreachable right? because inner's error is Infallible

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It might be nice to keep this, it seems like its technically possible that evm_env is updated to return an error without any breaking changes right? In this case we handle this error.

Comment thread crates/evm/src/error.rs Outdated
@fgimenez fgimenez force-pushed the fgimenez/lane-docoding-error-types branch from 8455073 to e5e4dfe Compare October 3, 2025 08:09
Co-authored-by: 0xKitsune <77890308+0xKitsune@users.noreply.github.com>
@fgimenez fgimenez enabled auto-merge (squash) October 3, 2025 08:10
@fgimenez fgimenez merged commit 2a475a1 into main Oct 3, 2025
13 of 15 checks passed
@fgimenez fgimenez deleted the fgimenez/lane-docoding-error-types branch October 3, 2025 08:26
fgimenez added a commit that referenced this pull request Oct 3, 2025
Closes: #356

---------

Co-authored-by: Richard Janis Goldschmidt <github@aberrat.io>
Co-authored-by: 0xKitsune <77890308+0xKitsune@users.noreply.github.com>
legion2002 pushed a commit that referenced this pull request Oct 9, 2025
Closes: #356

---------

Co-authored-by: Richard Janis Goldschmidt <github@aberrat.io>
Co-authored-by: 0xKitsune <77890308+0xKitsune@users.noreply.github.com>
unbalancedparentheses pushed a commit to unbalancedparentheses/tempo that referenced this pull request Feb 23, 2026
…yz#360)

Closes: tempoxyz#356

---------

Co-authored-by: Richard Janis Goldschmidt <github@aberrat.io>
Co-authored-by: 0xKitsune <77890308+0xKitsune@users.noreply.github.com>
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.

Update to latest reth with rpc changes

5 participants