zemse / hardhat-tracer

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

`npx hardhat node --trace` results in Error HH305: Unrecognized param --trace #44

Closed kasumi-1 closed 1 year ago

kasumi-1 commented 1 year ago

In fresh repo with this package.json:

{                   
  "name": "test-tracer",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT", 
  "dependencies": { 
    "hardhat": "^2.14.0",                                                                                                                                                                                          
    "hardhat-tracer": "^2.2.2"
  },                
  "devDependencies": {
    "chai": "^4.3.7"
  }                 
}

Running:

$ npx hardhat node --trace
Error HH305: Unrecognized param --trace

For more info go to https://hardhat.org/HH305 or run Hardhat with --show-stack-traces

Whereas:

$ npx hardhat test --trace

  0 passing (2ms)
kasumi-1 commented 1 year ago

I notice there was support added #20 however trying this with hardhat 2.6.8 and hardhat 2.0.0 also results in same error

Edit: Looks like this commit is in master but not main

zemse commented 1 year ago

I've added the node task to register by default in 2.3.0 since it is hardhat's task. The PR 20's method was merged in v1 and while porting it to v2 it was replaced with a generic solution just added to the docs.