zemse / hardhat-tracer

🕵️ allows you to see internal calls, events and storage operations in the console
MIT License
351 stars 36 forks source link

printDebugTraceElseLogs err: TypeError: Cannot read properties of undefined (reading 'entries') #17

Closed mhxw closed 1 year ago

mhxw commented 2 years ago

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 2 years ago

Thanks for reporting, can you pls provide the entire cli command used, I'll look into this.

mhxw commented 2 years ago

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 2 years ago

yep that should help

zemse commented 1 year ago

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 1 year ago

Closing this since it should be resolved with the v2. If you are facing any issue feel free to reopen :)