Skip to content

Tracing of network-helpers.mine() event #77

@graygt

Description

@graygt

I'm trying to simulate multiple txs in the same block.
I send txs to "mempool" consequently and finally run network-helpers.mine() to mine the block.
On the event of sending, I see logs like:

Hardhat Tracer wanted to print trace, but lastTrace is undefined. 
This only works on hardhat network, if you are running your script over RPC provider then VM data is not available.

I'd like to trace txs on the mining event. How can I do it?

One way is to run debug_traceTransaction for every mined txs and then convert them to readable format. Can I use this module to do it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions