Skip to content

refactor(evm): use CTX::Db instead of dyn DatabaseExt in nested EVM APIs#13951

Merged
DaniPopes merged 2 commits intofoundry-rs:masterfrom
mablr:refactor/use-ctx-db-instead-of-dyn-databaseext
Mar 26, 2026
Merged

refactor(evm): use CTX::Db instead of dyn DatabaseExt in nested EVM APIs#13951
DaniPopes merged 2 commits intofoundry-rs:masterfrom
mablr:refactor/use-ctx-db-instead-of-dyn-databaseext

Conversation

@mablr
Copy link
Copy Markdown
Collaborator

@mablr mablr commented Mar 26, 2026

Motivation

Replace dynamic dispatch (dyn DatabaseExt<...>) with the generic associated type CTX::Db in with_cloned_context, with_fresh_nested_evm, and fork_env_op.

This simplifies the trait bounds and makes contraints more robust. May help for #13949 resolution.

…VM APIs

Replace dynamic dispatch (`dyn DatabaseExt<...>`) with the generic associated type `CTX::Db` in `with_cloned_context`, `with_fresh_nested_evm`, and `fork_env_op`.

This simplifies the trait bounds and makes contraints more robust.
@DaniPopes DaniPopes enabled auto-merge (squash) March 26, 2026 18:21
@DaniPopes DaniPopes merged commit f0a2c23 into foundry-rs:master Mar 26, 2026
16 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry Mar 26, 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