Git Product home page Git Product logo

Comments (4)

sfl0r3nz05 avatar sfl0r3nz05 commented on July 18, 2024 2

@davidmurdoch, I didn't understand what you meant by the tracer option. I see it now. Thank you very much.

from ganache-cli-archive.

davidmurdoch avatar davidmurdoch commented on July 18, 2024

You'll want to use debug_traceTransaction for that (see https://geth.ethereum.org/docs/rpc/ns-debug#example-2). Note: ganache doesn't support the tracer option.

The o: looks to be an issue with webpack minifying the name of the class (RuntimeError, I think) into the single letter, o. Calling toString() on an Error object causes the name of the error object to be prepended to the error's message, e.g., new Error("message").toString() === "Error: message".

Let me know if this answers your questions!

from ganache-cli-archive.

sfl0r3nz05 avatar sfl0r3nz05 commented on July 18, 2024

Thanks, @davidmurdoch, debug_tracerTransaction is exactly what I would need.

One option could be, collect ganache logs, and once I have recovered the hash of the failed transaction, via web3 catch error, recover values which normally, "debug.traceTransaction" would return. Does this make sense to you? Any idea to collect these logs? I am thinking, in something similar to this, i.e., definition of a place to collect transactions (e.g.: ganache_data).

image

Thanks in advance.

from ganache-cli-archive.

davidmurdoch avatar davidmurdoch commented on July 18, 2024

Why can't you just use debug_traceTransaction?

from ganache-cli-archive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.