Skip to content

hedera-dev/tutorial-js-fork-hedera-testnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Fork Hedera Testnet and Interact with Deployed Contracts on the Latest Block

Foundry's forking mode lets you interact with contracts and run tests as if on a real network. Learn how to fork Hedera Testnet on the latest block and test your contracts with the latest state of the network.

What you will accomplish

  • ✅ Deploy your smart contract to Hedera Testnet using forge create
  • ✅ Use cast command-line tool to execute the createTodo function in TodoList.sol
  • ✅ Fork Hedera Testnet on the latest block & run your tests against your deployed contract

Prerequisites

Before you begin, you should be familiar with the following:

Have the following set up on your computer:

  • git installed
  • A code editor or IDE
  • NodeJs + npm installed
    • Minimum version of NodeJs: 18
    • Minimum version of npm: 9.5
    • Recommended for Linux & Mac: nvm
    • Recommended for Windows: nvm-windows
  • Foundry forge and cast installed
    • forge Minimum version: 0.2.0
    • cast Minimum version: 0.2.0

Get started

The repo, github.com/hedera-dev/fork-hedera-testnet, is intended to be used alongside this tutorial.

About

Let's explore how to fork Hedera testnet using Foundry and test a deployed contract.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors