fravoll / solidity-patterns

A compilation of patterns and best practices for the smart contract programming language Solidity
https://fravoll.github.io/solidity-patterns/
MIT License
3.17k stars 517 forks source link

deposit function increments current balance #18

Closed NiloCK closed 2 years ago

NiloCK commented 3 years ago

The previous "incorrect" implementation can cause readers to slow-down-and-think about the wrong part of this example code.