Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add overflow protection to num256 functions #385

Merged

Conversation

DavidKnott
Copy link
Contributor

- What I did

Added overflow protection to num256 functions.

- How I did it

I did this by looking at Solidity's SafeMath.sol and writing it in LLL.

- How to verify it

Look at the tests I added, especially the ones that fail because of overflow.

- Description for the changelog

Add num256 overflow protection

- Cute Animal Picture

image

@DavidKnott
Copy link
Contributor Author

I'm going to add comments to what I added to make it easier to understand.

@DavidKnott DavidKnott force-pushed the add-uint256-overflow-protection branch from a1f39ce to 39be5a8 Compare October 10, 2017 17:50
@DavidKnott
Copy link
Contributor Author

@jacqueswww I added comments, please check this out when you have a sec.

@DavidKnott DavidKnott merged commit 64c2820 into vyperlang:master Oct 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant