Skip to content

Exercises to learn solidity. This accompanies the RareSkills Learn Solidity resource.

License

Notifications You must be signed in to change notification settings

RareSkills/Solidity-Exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solidity Exercises

This is a set of exercises accompanies the RareSkills learn solidity tutorial so you can learn Solidity by doing bite-sized exercises. It's intended for experienced programmers who want to get the the point quickly and immediately practice what they learn.

Installation

Install foundry

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

Clone this repository

git clone https://github.com/rareSkills/solidity-exercises.git

Complete the exercises in order and test with

cd <Problem Name>
forge test -vvv

for example, in the Add/ directory, open src/Add.sol and change the code so it compiles. The solution is

    function add(uint256 a, uint256 b) public pure returns (uint256) {
        return a + b;
    }

Save your changes, then, in the same directory, test it with

forge test -vvv

Test all

bash test.sh

About

Exercises to learn solidity. This accompanies the RareSkills Learn Solidity resource.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages