Skip to content

refactor(anvil): make MaybeImpersonatedTransaction generic#13654

Merged
onbjerg merged 1 commit intofoundry-rs:masterfrom
stevencartavia:generic-impersonated-tx
Mar 6, 2026
Merged

refactor(anvil): make MaybeImpersonatedTransaction generic#13654
onbjerg merged 1 commit intofoundry-rs:masterfrom
stevencartavia:generic-impersonated-tx

Conversation

@stevencartavia
Copy link
Copy Markdown
Collaborator

Renames ImpersonatedTransaction<T> to MaybeImpersonatedTransaction<T = FoundryTxEnvelope>, eliminating the type alias.
Replaces the concrete impl MaybeImpersonatedTransaction<FoundryTxEnvelope> block with a generic impl bounded on SignerRecoverable + TxHashRef + Encodable, moving the impersonated hash logic out of FoundryTxEnvelope and into the wrapper. Implements both traits on FoundryTxEnvelope to satisfy the bounds.

@onbjerg onbjerg merged commit f787868 into foundry-rs:master Mar 6, 2026
16 checks passed
@github-project-automation github-project-automation Bot moved this to Done in Foundry Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants