Basic tutorial on how to get started with testing and deployment on foundry
-
Install foundry
-
Clone this repo
-
Create an alchemy account and create a new Goerli App
-
Get some Goerli tokens from a faucet.
-
Create an Etherscan account
- Execute
forge test
to run the tests - Add another test to
FoundryToken.t.sol
that checks that the symbol of the token isFTK
- Add another test to check that when transfering tokens from
alice
tobob
the tokens are actually transfered and thatalice
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);
- Deploy and verify the
FoundryToken
to Goerli.
Do you want to become an OpenZeppelin Security Auditor?
Join the Security Fellowship Program that starts in September.
Its a full time, paid program for people with a development or security background.
More info here