tesla809 / Solidity-Exercises

Learn Solidity in bite sized lessons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solidity Exercises

This is a set of exercises created by RareSkills so you can learn Solidity by doing bite-sized exercises.

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

About

Learn Solidity in bite sized lessons

License:Other


Languages

Language:Solidity 99.9%Language:Makefile 0.1%Language:Nix 0.0%