Skip to content

migglio/security-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workshop: Smart Contracts Security with Foundry

Requisites

Install Foundry

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

https://book.getfoundry.sh/getting-started/installation

Foundry

Tests

To run tests:

forge test
  • -vv shows console.log output.
  • -vvvvv shows execution and setup traces for all tests.

To run specific tests:

  • --mt runs tests matching the specified regex.

Example:

forge test --mt test_Depositor -vv

Cheatsheet

Security

Challenges

Challenges can be found in the /test folder.

Your goal is to make all tests PASS ✨

You'll find the tags START OF SOLUTION and END OF SOLUTION on each test file. You should write your solution there.

You may create and instantiate new contracts to help you with the solution, as long as the new Contract() is instantiated and called between those tags.

Cheatcodes are not allowed of course :)

Checklists

Resources

Learn & Practice

Tools

Thanks!

congratulations-evangelion

🎹 By Juancito | https://x.com/0xJuancito

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published