Skip to content

🕵️ allows you to see internal calls, events and storage operations in the console

License

Notifications You must be signed in to change notification settings

zemse/hardhat-tracer

Repository files navigation

hardhat-tracer 🕵️

Allows you to see emitted events when running your tests.

Installation

Step 1: Install the package

npm i hardhat-tracer

Step 2: Add to your hardhat.config.js file

require("hardhat-tracer");

Usage

Just add the --logs after your test command.

npx hardhat test --logs

Console test

Address name tags

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";