Home

Awesome

<h1 align="center"> Hardhat x Foundry Template </h1>

Template repository for getting started quickly with Hardhat and Foundry in one project

Github Actions

Getting Started

forge install
forge test
npm install
npx hardhat test

Features

forge test
# or
npx hardhat test
npx hardhat example
forge install rari-capital/solmate # Already in this repo, just an example

Notes

Whenever you install new libraries using Foundry, make sure to update your remappings.txt file by running forge remappings > remappings.txt. This is required because we use hardhat-preprocessor and the remappings.txt file to allow Hardhat to resolve libraries you install with Foundry.