项目
在 GitHub 查看
RareSkills/Solidity-Exercises
关于
用于学习 Solidity 的练习。这些练习配套 RareSkills Learn Solidity 学习资源。
学习与教育实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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
探索相关项目
加载中…