Skip to content
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

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

Open
graygt opened this issue Jul 31, 2024 · 1 comment
Open

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

graygt opened this issue Jul 31, 2024 · 1 comment

Comments

@graygt
Copy link

graygt commented Jul 31, 2024

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?

@zemse
Copy link
Owner

zemse commented Aug 5, 2024

Thanks for reporting. This plugin wasn't tracing when block was being authored through evm_mine, just tried to fix this behaviour.

Now the trace should be printed when you mine the block.

Please try [email protected].

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

No branches or pull requests

2 participants