Skip to content

Conversation

@Dhruv-2003
Copy link
Contributor

closes #406

Description

This PR adds new method on the network_spec: transact that basically replays/process a tx in a VM. This changes decouples the execution from the generic EVM interface, allowing each network to define its own EVM implementation.

Note

  • execution_provider was moved to common crate from core, for use within network_spec
  • Evm implementation added on the specific network, is a modified version of old evm.rs, now including tx_env and block_env method for that network. Minimal code repetition approach followed, but still scope of improvement if we are able to implement ProofDB properly.

Old PRs closed due to major codebase refactoring #597 #502

Copy link
Collaborator

@ncitron ncitron left a comment

Choose a reason for hiding this comment

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

Looks very good. Just a few small comments.

@Dhruv-2003
Copy link
Contributor Author

should be gtg, for some reason the MAINNET_EXECUTION_RPC isn't set, failing the whole test, lmk if there are any changes to be done on my end

Copy link
Collaborator

@ncitron ncitron left a comment

Choose a reason for hiding this comment

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

LGTM!

@ncitron ncitron merged commit 7b42369 into a16z:master Jun 12, 2025
5 of 6 checks passed
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.

feat: better evm handling

2 participants