Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(anvil): debug_traceTransaction does not work for local txs (after fork) #8678

Closed
2 tasks done
Tracked by #8269
monokh opened this issue Aug 15, 2024 · 1 comment
Closed
2 tasks done
Tracked by #8269
Labels
C-anvil Command: anvil T-bug Type: bug
Milestone

Comments

@monokh
Copy link

monokh commented Aug 15, 2024

Component

Anvil

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (588a1d7 2024-06-19T00:23:02.274658000Z)

What command(s) is the bug in?

anvil

Operating System

macOS (Apple Silicon)

Describe the bug

Trying the callTracer tracer with debug_traceTransaction
It works for transactions that have been mined previous to the fork. But transactions added to the chain after the fork locally do not return the call trace.

Example

{"jsonrpc": "2.0","id": "123","method": "debug_traceTransaction","params": ["0x2d70cab1a3481c03fecf2909192cfa6601fb60b3239d982694cfa787e44f2d1e", {"tracer": "callTracer"}]}
{
    "jsonrpc": "2.0",
    "id": "123",
    "result": {
        "failed": false,
        "gas": 119470,
        "returnValue": "",
        "structLogs": []
    }
}

All trace types in fact return this same response.

Works completely fine for transactions that are mined before the fork. I suppose as they result in a direct call to the node.

@monokh monokh added T-bug Type: bug T-needs-triage Type: this issue needs to be labelled labels Aug 15, 2024
@zerosnacks zerosnacks added this to the v1.0.0 milestone Aug 16, 2024
@zerosnacks zerosnacks changed the title debug_traceTransaction does not work for local txs (after fork) bug(anvil): debug_traceTransaction does not work for local txs (after fork) Aug 16, 2024
@zerosnacks zerosnacks added C-anvil Command: anvil and removed T-needs-triage Type: this issue needs to be labelled labels Aug 16, 2024
@yash-atreya
Copy link
Member

@monokh I'm unable to repro this result. debug_trace_transaction is working correctly for txs sent locally after forking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-anvil Command: anvil T-bug Type: bug
Projects
None yet
Development

No branches or pull requests

3 participants