-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
debug_traceCall support #2782
Comments
second this |
Would love to have this! |
would love this as well |
Agreed, this would be a great feature to have. |
Yes, I really could use this! |
One more requirement, I got the trace like this: {
"depth": 1,
"gas": 29978936,
"gasCost": 3,
"op": "PUSH1",
"pc": 0,
"stack": []
}, however, when I use {
"depth": 0,
"error": "",
"gas": 39469,
"gasCost": 3,
"memory": [],
"op": "PUSH1",
"pc": 0,
"stack": [],
"storage": {}
}, can we add storage and memory part? |
I get storage and memory when I request like this:
Edit: Also, I am running my Anvil node with the |
Wait, didn't #3990 resolve this issue? |
pretty sure it did haha! thanks for flagging @antazoey — closing |
I am trying to trace a transaction which is not committed so I only want to use |
Component
Anvil
Describe the feature you would like
debug_traceCall
is useful for getting a structured execution trace ofeth_call
, specifically when it comes to tx simulation. Unique challenges include the ability to enable users to leverage custom tracers written in js and state/block overrides, the latter of which is not present indebug_traceTransaction
.Additional context
I'm currently using a custom JS tracer, mostly to format data prior to a response as opposed to doing fancy stuff across multiple opcodes, but not leveraging state/block overrides.
Not sure how many others would benefit from this feature. hardhat does not yet support
debug_traceCall
either, but does have support fordebug_traceTransaction
. I'm aware of #1737 but figured I'd put this out there as well.If this isn't prioritized, an alternative could be to run geth in clique mode with a custom
genesis.json
and then execute traces accordingly (h/t @tynes for the idea)The text was updated successfully, but these errors were encountered: