Skip to content

Vanclief/foundry-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

foundry-tutorial

Basic tutorial on how to get started with testing and deployment on foundry

Prerequisites

  1. Install foundry

  2. Clone this repo

  3. Create an alchemy account and create a new Goerli App

  4. Get some Goerli tokens from a faucet.

  5. Create an Etherscan account

Challenges

Testing a Smart Contract

  1. Execute forge test to run the tests
  2. Add another test to FoundryToken.t.sol that checks that the symbol of the token is FTK
  3. Add another test to check that when transfering tokens from alice to bob the tokens are actually transfered and that alice balance is reduced by the amount of tokens transfered.

hint: You can use forge test -vv to see a more detailed output of the tests.

hint: You can create an array of user accounts with address payable[] memory users = utils.createUsers(2);

Step by step solution

Deploying a Smart Contract

  1. Deploy and verify the FoundryToken to Goerli.

Step by step solution

Resources

About

Minimalistic tutorial on how to get started with foundry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages