bug(anvil
): unable to use debug_traceTransaction
structLogs tracer on forked network
#8262
Labels
Milestone
Component
Anvil
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (7bef9ca 2024-06-26T00:21:14.969821000Z)
What command(s) is the bug in?
anvil
Operating System
macOS (Intel)
Describe the bug
I am able to use debug_traceTransaction w/o specifying the tracer-value for any local transaction, and it works great.
However, when I use a forked network (such as Ethereum mainnet, forked with Anvil), and I use an old transaction hash, such as '0x0537316f37627655b7fe5e50e23f71cd835b377d1cde4226443c94723d036e32`, I get errors that I don't get when the transaction originated during local / testing (not a historical tx picked up from the fork).
the first error I get is like:
Because my parameters are
{"stepsTracing": true, "enableMemory": true}
which work great for local anvil nodes when tracing, but I guess forked-mode expects something else?So I tried messing around with parameters. I tried passing
"tracer": "structLogs"
which is valid in Geth but that does not seem to be valid tracer inrevm
or something. I tried excluding all of it together but i get the first error again.I know before this used to work, so I am not sure what has happened.
Interestingly, Hardhat seems to also suddenly issues similar to this: NomicFoundation/edr#533
And I think they are also using revm now.
Perhaps the real issues lie there?
The text was updated successfully, but these errors were encountered: