printDebugTraceElseLogs err: TypeError: Cannot read properties of undefined (reading 'entries')
Closed this issue · 5 comments
mhxw commented
Using debug_tt on rpc failed, activating mainnet fork at block 12461683
The Hardhat Network tracing engine could not be initialized. Run Hardhat with --verbose to learn more.
Error in printDebugTraceElseLogs: TypeError: Cannot read properties of undefined (reading 'entries')
at printDebugTrace (/Users/Projects/hardhat-tracer1/src/print/debug-trace.ts:31:66)
at printDebugTraceOrLogs (/Users/Projects/hardhat-tracer1/src/print/index.ts:19:7)
at SimpleTaskDefinition.action (/Users/Projects/hardhat-tracer1/src/tasks/trace.ts:82:22)
at Environment._runTaskDefinition (/Users/Projects/debugger/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
at Environment.run (/Users/Projects/debugger/node_modules/hardhat/src/internal/core/runtime-environment.ts:131:14)
at main (/Users/Projects/debugger/node_modules/hardhat/src/internal/cli/cli.ts:256:5)
If you think the above error is a bug, please report it to https://github.com/zemse/hardhat-tracer/issues/new, meanwhile falling back to --logs:
zemse commented
Thanks for reporting, can you pls provide the entire cli command used, I'll look into this.
mhxw commented
Thanks for reporting, can you pls provide the entire cli command used, I'll look into this.
Can I send you the response data after requesting debug_tracetransaction via rpc?
zemse commented
yep that should help
zemse commented
Can you please try v2-beta branch if it resolves this issue for you? The internal logic is rewritten to improve performance and features.
npm i hardhat-tracer@beta
zemse commented
Closing this since it should be resolved with the v2. If you are facing any issue feel free to reopen :)