-
Notifications
You must be signed in to change notification settings - Fork 1
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
[r2r] hardhat migration from truffle and ganache #5
Conversation
024b9dc
to
2a01bb5
Compare
2f0a0a6
to
5af741a
Compare
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.
I got the error after following the environment setup guide from Readme:
docker-compose exec workspace hardhat test
OCI runtime exec failed: exec failed: unable to start container process: exec: "hardhat": executable file not found in $PATH: unknown
@laruh I assume additional installation steps should be done in workspace Dockerfile.
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.
Few more questions 🙂
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.
One more note.
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.
Few more notes.
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.
Great work 🔥
issue #4
Dependency Changes
Upgrades and Additions:
hardhat
:^2.19.4
@nomicfoundation/hardhat-ethers
:^3.0.5
(This plugin integrates Hardhat with ethers.js).ethers
:^6.10.0
(Upgraded to a newer version for compatibility with Hardhat).Removals:
Removed Ganache:
ganache
: No longer required as Hardhat provides an Ethereum environment for deploying contracts, running tests, and performing other tasks.Removed Web3.js:
web3
: Replaced with ethers.js which is more compatible with the Hardhat environment.Removed Unnecessary Dependencies:
request
,request-promise-native
,sol-merger
: Not required in the updated project setup.Retained Dependencies:
Chai and Chai-as-Promised:
chai
:^4.3.10
chai-as-promised
:^7.1.1
OpenZeppelin Contracts:
@openzeppelin/contracts
:^5.0.0
RIPEMD160:
ripemd160
:^2.0.1
Context for Changes:
The migration from Truffle to Hardhat necessitated these changes. Hardhat is used for compiling, deploying, testing, and debugging Ethereum software. The switch to ethers.js from Web3.js aligns with Hardhat's native support for ethers.js, providing a more streamlined and efficient development workflow.