Skip to content

Instantly share code, notes, and snippets.

@partylikeits1983
Created February 18, 2025 14:01
Show Gist options
  • Save partylikeits1983/133fe4ea402aff5803c391d8e9730188 to your computer and use it in GitHub Desktop.
Save partylikeits1983/133fe4ea402aff5803c391d8e9730188 to your computer and use it in GitHub Desktop.

Solidity Counter Contract Tutorial

Step 1: Install Foundry

Follow the instructions here: https://book.getfoundry.sh/getting-started/installation

Or run the foundryup install command:

curl -L https://foundry.paradigm.xyz | bash

Step 2: Create and initialize a directory for your project

mkdir solidity-counter
cd solidity-counter
forge init

Step 3: Run the tests to see how to increment the counter

forge test -vv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment