Update @nomicfoundation/hardhat-toolbox to latest version (6.1.0) and fix compatibility issues - #40
Draft
sonnyquinn24 with Copilot wants to merge 2 commits into
Draft
Update @nomicfoundation/hardhat-toolbox to latest version (6.1.0) and fix compatibility issues#40sonnyquinn24 with Copilot wants to merge 2 commits into
sonnyquinn24 with Copilot wants to merge 2 commits into
Conversation
…on (6.1.0) Co-authored-by: sonnyquinn24 <227287527+sonnyquinn24@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update to latest @nomicfoundation/hardhat-toolbox version in devDependencies
Update @nomicfoundation/hardhat-toolbox to latest version (6.1.0) and fix compatibility issues
Sep 9, 2025
sonnyquinn24
approved these changes
Sep 9, 2025
sonnyquinn24
approved these changes
Sep 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates the project's devDependencies to use the latest version of
@nomicfoundation/hardhat-toolbox(6.1.0) and resolves all compatibility issues that arose from the update.Changes Made
1. Updated Hardhat Toolbox
@nomicfoundation/hardhat-toolboxfrom^6.1.0to the latest version@nomicfoundation/hardhat-ethers,@nomicfoundation/hardhat-chai-matchers,chai,ethers) that are now provided by the toolboxhardhatto^2.26.3for compatibility with the toolbox2. Fixed Configuration
hardhat.config.jsto import@nomicfoundation/hardhat-toolboxinstead of individual@nomicfoundation/hardhat-ethers3. Resolved OpenZeppelin Contracts Compatibility
Fixed constructor issues in smart contracts due to OpenZeppelin Contracts v5.x requiring explicit owner parameters:
SEQICO.sol:
SEQToken.sol:
4. Fixed ES Module Imports
Updated all script files to use compatible import syntax:
This resolves ES module compatibility issues while maintaining the same functionality.
Verification
All existing functionality has been tested and verified:
deploy.jsanddeploy-DE.js) working correctlyexample-values.js,price-examples.js) functioningBenefits
The update ensures the project uses the most current and stable versions of the Hardhat ecosystem while maintaining full backward compatibility with existing contracts and scripts.
This pull request was created as a result of the following prompt from Copilot chat.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.