Skip to content

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.

Notifications You must be signed in to change notification settings

hedera-dev/foundry-test-smart-contract

Repository files navigation

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 [email protected]: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

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages