{"id":15926405,"url":"https://github.com/zemse/hardhat-debug-tt-issue-repro","last_synced_at":"2025-04-03T13:26:30.261Z","repository":{"id":119196456,"uuid":"491531650","full_name":"zemse/hardhat-debug-tt-issue-repro","owner":"zemse","description":"This is just a reproduction for an error while using debug_traceTransaction in hardhat.","archived":false,"fork":false,"pushed_at":"2022-05-12T13:45:43.000Z","size":263,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T02:29:13.240Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zemse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-12T13:45:32.000Z","updated_at":"2022-05-12T13:45:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"266d6792-b3ac-4dff-a403-260b8a958430","html_url":"https://github.com/zemse/hardhat-debug-tt-issue-repro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fhardhat-debug-tt-issue-repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fhardhat-debug-tt-issue-repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fhardhat-debug-tt-issue-repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fhardhat-debug-tt-issue-repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zemse","download_url":"https://codeload.github.com/zemse/hardhat-debug-tt-issue-repro/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247008283,"owners_count":20868354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-06T22:40:39.157Z","updated_at":"2025-04-03T13:26:30.234Z","avatar_url":"https://github.com/zemse.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reproduction for debug_traceTransaction issue\n\nThis issue is reproducible on Arbitrum and Optimism. For mainnet txs the script seems to work.\n\n```\n% npx hardhat run scripts/sample-script.js\n\nTypeError: Cannot read property 'negative' of undefined\n    at BN.cmp (/Users/sohamzemse/Workspace/smart-contract-projects/issue-repro/node_modules/ethereumjs-util/node_modules/bn.js/lib/bn.js:2869:36)\n    at BN.lt (/Users/sohamzemse/Workspace/smart-contract-projects/issue-repro/node_modules/ethereumjs-util/node_modules/bn.js/lib/bn.js:2919:17)\n    at VM._runTx (/Users/sohamzemse/Workspace/smart-contract-projects/issue-repro/node_modules/@ethereumjs/vm/src/runTx.ts:298:22)\n    at processTicksAndRejections (node:internal/process/task_queues:96:5)\n    at VM.runTx (/Users/sohamzemse/Workspace/smart-contract-projects/issue-repro/node_modules/@ethereumjs/vm/src/runTx.ts:204:20)\n    at /Users/sohamzemse/Workspace/smart-contract-projects/issue-repro/node_modules/hardhat/src/internal/hardhat-network/provider/node.ts:1387:15\n    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)\n    at HardhatNode._runInBlockContext (/Users/sohamzemse/Workspace/smart-contract-projects/issue-repro/node_modules/hardhat/src/internal/hardhat-network/provider/node.ts:2136:14)\n    at HardhatNetworkProvider.request (/Users/sohamzemse/Workspace/smart-contract-projects/issue-repro/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:118:18)\n    at main (/Users/sohamzemse/Workspace/smart-contract-projects/issue-repro/scripts/sample-script.js:27:24)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemse%2Fhardhat-debug-tt-issue-repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzemse%2Fhardhat-debug-tt-issue-repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemse%2Fhardhat-debug-tt-issue-repro/lists"}