-
Notifications
You must be signed in to change notification settings - Fork 41
Migration to Hardhat 3 #412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 21215897126Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request migrates the codebase from Hardhat 2 to Hardhat 3, updating configuration files, test files, deployment scripts, and ignition modules to use the new API.
Changes:
- Updated
hardhat.config.tsto use Hardhat 3's new configuration format withdefineConfigand plugins - Migrated all test files and scripts to use
ethers,ignition, andnetworkHelpersfromnetwork.connect() - Replaced deprecated Chai matchers (
.reverted→.revert(ethers),.changeEtherBalance→.changeEtherBalance(ethers)) - Updated ignition modules to return additional contract references needed in tests
Reviewed changes
Copilot reviewed 110 out of 113 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| hardhat.config.ts | Migrated to Hardhat 3 config format with new plugin system |
| tsconfig.json | Updated target to es2022 and module to esnext |
| package.json | Updated dependencies and added "type": "module" |
| test/**/*.test.ts | Migrated to use network.connect() API and updated Chai matchers |
| scripts/**/*.ts | Updated to use network.connect() for ethers/ignition access |
| ignition/modules/**/*.ts | Updated module returns and added new test helper modules |
| helpers/*.ts | Updated utility functions and removed deprecated helpers |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8109953 to
29f15fd
Compare
hardhat.config.tswith new formatethersandignitionfrom hardhatnetwork.connect().upgradesverifyContractfunctionality fromhardhat-verify