Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Built in tracers don't seem to work #523

Closed
liamaharon opened this issue Jan 7, 2020 · 3 comments
Closed

Built in tracers don't seem to work #523

liamaharon opened this issue Jan 7, 2020 · 3 comments

Comments

@liamaharon
Copy link

liamaharon commented Jan 7, 2020

Expected Behavior

as described in ethereum/go-ethereum#15516 when I call debug.traceTransaction with {tracer: "callTracer"} as the second argument I expect the call to return a list of internal transactions.

Current Behavior

I'm returned the same data as if I passed an empty object as the second parameter

Possible Solution

extend tracing ability to be on par with Geth. logic looks to be contained here https://github.com/ethereum/go-ethereum/blob/master/eth/tracers/internal/tracers/call_tracer.js, but not 100% sure how it can be applied in Ganache

Context

I want to trace transactions that are pending and get the list of internal transactions they're likely to trigger. unfortunately Geth doesn't allow tracing a transaction until it is mined, so I want to simulate each pending transaction being mined on a Ganache instance forked from Geth and make the debug.traceTransaction straight afterwards.

If somebody is willing to provide guidance I would be happy to implement this feature and open a PR

Your Environment

  • Version used: 2.8.0
  • Environment name and version (e.g. PHP 5.4 on nginx 1.9.1): Nodejs v12.13.1
  • Operating System and version: Ubuntu 18.04
@liamaharon
Copy link
Author

liamaharon commented Jan 8, 2020

I ended up writing this for my usecase, it converts raw CALL, DELEGATECALL, CALLCODE into an array of internal transactions

https://gist.github.com/liamaharon/ed9ede5eb93367e731d5ec7b795995af

@cwazy2020
Copy link

I have no CALL, DELEGATECALL, or CALLCODE op’s in the traceTransaction output (from Ganache) out of dozens of txs that I have tested, all of which went to contracts. Any idea how this could happen?

@eggplantzzz
Copy link
Contributor

This is a duplicate (related issue) of #381.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants