Skip to content

hardhat-tracer v2

Compare
Choose a tag to compare
@zemse zemse released this 18 Feb 17:47
69cf2c2

Improvements

  • Performance improvements by directly using hardhat vm. Consumes minimal RAM as compared to v1 implementation.
  • tracecall task allows to perform arbitary calls on mainnet to inspect state.
  • State overrides allows to set storage, bytecode, balance, nonce for any address, which can be useful to see how a mainnet tx trace would be with local solidity contracts code (containing any console logs for mainnet debugging).
  • Faster abi decoding by using 4byte directory.
  • Allows to print trace for just failed txs or calls while running tests using --v or --vv, or everything using --vvv or --vvvv.
  • Adds chai assertion method for expecting internal message calls, e.g. expect(hre.tracer.lastTrace()).to.have.messageCall(await contract.populateTransaction.someMethodInCalledInTx(param1, param2))
  • Export trace in JSON formats.