Skip to content

(Lesson 12 - ERC20) Overflow - Solved #759

Answered by PatrickAlphaC
krakxn asked this question in Q&A
Discussion options

You must be logged in to vote

This is probably a little outdated code, but in earlier versions of solidity, if you made a number that was larger than the largest number, it would "wrap" back to 0.

So this line makes sure we don't wrap back to 0.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by PatrickAlphaC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants