Skip to content

fix: tx->TxEnv conversion drops fields#42

Open
samlaf wants to merge 2 commits intoveridise-audit-feb-2026from
fix--veridise-902-txenv-conversion-drops-fields
Open

fix: tx->TxEnv conversion drops fields#42
samlaf wants to merge 2 commits intoveridise-audit-feb-2026from
fix--veridise-902-txenv-conversion-drops-fields

Conversation

@samlaf
Copy link
Copy Markdown

@samlaf samlaf commented Mar 25, 2026

Fixes veridise-902.

The implementation of FromRecoveredTx was (badly) reimplementing the conversion that already exists in TxEnv::from_recovered_tx and dropping fields.

Added a TxEnv::from_recovered_tx implementation for TxSeismic, and then updated FromRecoveredTx to delegate ot from_recovered_tx.

Note

The code had a comment saying this function is only used for testing:

The implementation is documented in its inline comments as test-only ("Ok for now because we only use this for testing") but is not gated by #[cfg(test)].

However Claude analyzed its actual usage and found that its used in production. Updated the comments to mention that its used in SeismicAlloyReceiptBuilder.

samlaf added a commit to SeismicSystems/seismic-reth that referenced this pull request Mar 25, 2026
…recovered_tx (#349)

Same fix as that from
SeismicSystems/seismic-evm#42

Not sure if there was an issue here, but its just unnecessary duplicate
code that is likely to contain a bug like it did in evm.
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