Skip to content

Conversation

@0xferrous
Copy link
Contributor

Motivation

Much faster tracing response for cast run when running against remote anvil instances because it saves 100s of sequential network requests querying the contract states.

Solution

Introduce a new rpc method in anvil anvil_revmTrace that returns CallTraceArena as response which then cast can print directly instead of doing local simulation which is very slow over network because it doesn't know which state it will need and the state gets queried sequentially as revm steps through the execution.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant