Using an existing Hedera node project with the JavaScript SDK, learn how to set up Foundry to be able to leverage Forge, their command-line tool, to run your smart contract tests written in Solidity.
- ✅ Configure Foundry and Forge with a Hedera Project
- ✅ Write unit tests in Solidity
- ✅ Run your tests using Foundry
forge
command - ✅ Create a Forge Gas Report
Before you begin, you should be familiar with the following:
Have the following set up on your computer:
- git installed
- Minimum version: 2.37
- Recommended: Install Git (Github)
- A code editor or IDE
- Recommended: VS Code. Install VS Code (Visual Studio)
- NodeJs + npm installed
- Minimum version of NodeJs: 18
- Minimum version of npm: 9.5
- Recommended for Linux & Mac: nvm
- Recommended for Windows: nvm-windows
The repo, github.com/hedera-dev/setup-foundry-and-write-basic-unit-test, is intended to be used alongside this tutorial