External Plugin
This is a third-party plugin. Please report issues in its Github Repository
Allows you to see emitted events when running your tests.
Step 1: Install the package
npm i hardhat-tracer
Step 2: Add to your hardhat.config.js
file
require("hardhat-tracer");
Just add the --logs
after your test command.
npx hardhat test --logs
You can set display names / name tags for address by adding new entry to hre.tracer.nameTags
object in your test cases, see following example:
hre.tracer.nameTags[this.arbitrager.address] = "Arbitrager";