https://github.com/zemse/hardhat-debug-tt-issue-repro
This is just a reproduction for an error while using debug_traceTransaction in hardhat.
https://github.com/zemse/hardhat-debug-tt-issue-repro
Last synced: about 1 year ago
JSON representation
This is just a reproduction for an error while using debug_traceTransaction in hardhat.
- Host: GitHub
- URL: https://github.com/zemse/hardhat-debug-tt-issue-repro
- Owner: zemse
- Created: 2022-05-12T13:45:32.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-12T13:45:43.000Z (about 4 years ago)
- Last Synced: 2025-02-09T02:29:13.240Z (over 1 year ago)
- Language: JavaScript
- Size: 257 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reproduction for debug_traceTransaction issue
This issue is reproducible on Arbitrum and Optimism. For mainnet txs the script seems to work.
```
% npx hardhat run scripts/sample-script.js
TypeError: Cannot read property 'negative' of undefined
at BN.cmp (/Users/sohamzemse/Workspace/smart-contract-projects/issue-repro/node_modules/ethereumjs-util/node_modules/bn.js/lib/bn.js:2869:36)
at BN.lt (/Users/sohamzemse/Workspace/smart-contract-projects/issue-repro/node_modules/ethereumjs-util/node_modules/bn.js/lib/bn.js:2919:17)
at VM._runTx (/Users/sohamzemse/Workspace/smart-contract-projects/issue-repro/node_modules/@ethereumjs/vm/src/runTx.ts:298:22)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at VM.runTx (/Users/sohamzemse/Workspace/smart-contract-projects/issue-repro/node_modules/@ethereumjs/vm/src/runTx.ts:204:20)
at /Users/sohamzemse/Workspace/smart-contract-projects/issue-repro/node_modules/hardhat/src/internal/hardhat-network/provider/node.ts:1387:15
at VMDebugTracer.trace (/Users/sohamzemse/Workspace/smart-contract-projects/issue-repro/node_modules/hardhat/src/internal/hardhat-network/stack-traces/vm-debug-tracer.ts:76:7)
at HardhatNode._runInBlockContext (/Users/sohamzemse/Workspace/smart-contract-projects/issue-repro/node_modules/hardhat/src/internal/hardhat-network/provider/node.ts:2136:14)
at HardhatNetworkProvider.request (/Users/sohamzemse/Workspace/smart-contract-projects/issue-repro/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)
at main (/Users/sohamzemse/Workspace/smart-contract-projects/issue-repro/scripts/sample-script.js:27:24)
```