Template repository for Hardhat and Foundry
- Use Foundry:
forge install
forge test- Use Hardhat:
npm install
npx hardhat test- Write / run tests with either Hardhat or Foundry or Both:
forge test
# or
npx hardhat test
# or
npm test (to run both)- Install libraries with Foundry which work with Hardhat.
forge install transmissions11/solmate # Already in this repo, just an example
# and
forge remappings > remappings.txt # allows resolve libraries installed with forge or npm