/foundry-test-smart-contract

A Hedera project with a sample smart contract that uses Foundry to write unit tests in Solidity to test smart contracts. This is a project utilizing TypeScript.

Primary LanguageSolidity

Test Smart Contracts on Hedera using Foundry - TypeScript

A Hedera project template for building and testing Solidity Smart Contracts using Foundry. It includes a sample TodoList smart contract and unit tests.

Technologies

  • TypeScript
  • Foundry
  • Hedera Hashgrapsh JavaScript SDK

Usage

  1. Clone this repo
    git clone git@github.com:hedera-dev/hedera-smart-contract-testing-with-foundry.git
  2. Execute npm i
  3. Add a .env file in the root directory with your Hedera Portal Account Credentials
  4. Execute npm run start to run the project

Prerequisites

Hedera Testnet account

Don't have one? Create one by going to portal.hedera.com. This testnet account will recieve 10,000 test HBAR every 24 hours!

Links

This repo pertains to the following article: How to Set Up Foundry To Test Smart Contracts On Hedera