zemse/hardhat-tracer

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

Closed this issue · 2 comments

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)

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

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.