Skip to content

feat(alloy-op-evm): impl OpTxTr trait for OpTx + OpEvmContext alias#20012

Open
mablr wants to merge 1 commit intoethereum-optimism:developfrom
mablr:feat/OpTxTr_impl
Open

feat(alloy-op-evm): impl OpTxTr trait for OpTx + OpEvmContext alias#20012
mablr wants to merge 1 commit intoethereum-optimism:developfrom
mablr:feat/OpTxTr_impl

Conversation

@mablr
Copy link
Copy Markdown
Contributor

@mablr mablr commented Apr 10, 2026

Description

alloy-op-evm has wrapped revm's OpTransaction<TxEnv> into OpTx.

alloy-op-evm consumers like Foundry need to mutate evm's Context, while having IntoTxEnv bound (only available for OpTx, not for OpTransaction<TxEnv>). In this case, building a customized OpEvm with ContextTr::Tx = OpTx is impossible as OpTx doesn't implement OpTxTr.

To resolve the problem I added OpTxTr passthrough impl for OpTx, and a convenience OpEvmContext<DB> alias mirroring alloy_evm::EthEvmContext<DB>.

@mablr mablr requested a review from a team as a code owner April 10, 2026 11:58
Copy link
Copy Markdown
Contributor Author

@mablr mablr left a comment

Choose a reason for hiding this comment

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

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.

1 participant