Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Replace 'if ... throw()' with 0.4.10 require() syntax #614

Merged
merged 1 commit into from
Jul 3, 2017

Conversation

clone1612
Copy link
Contributor

Motivation for pull request
Solidity 0.4.10 introduced the require() syntax which throws if the condition is false. The changes made in this PR are aimed at replacing the if ... throw() statements. This is done to encourage the behavior shown in the official Solidity documentation.

Testing
All code compiles with 0.4.11

If there is anything wrong or something that needs to be improved/changed feel free to say so, this is my first pull request for this project so I'm not yet familiar with the exact workflow.

@clone1612 clone1612 changed the title Replace throw with 0.4.10 require syntax Replace 'if ... throw()' with 0.4.10 require() syntax Jul 1, 2017
@kevinsimper
Copy link
Contributor

Link to the relevant solidity changelog :) https://github.com/ethereum/solidity/blob/develop/Changelog.md#0410-2017-03-15

@Arachnid
Copy link
Contributor

Arachnid commented Jul 3, 2017

Thanks!

@Arachnid Arachnid merged commit 6d1f602 into ethereum:master Jul 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants