Created
September 19, 2017 19:07
-
-
Save maurelian/c7b647b64d9d2422b81108f8b6af0c7c to your computer and use it in GitHub Desktop.
A contract for comparing the behavior of error checks in solidity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.15; | |
contract C{ | |
function throws(){ | |
throw; | |
} | |
function reverts(){ | |
revert(); | |
} | |
function requires(){ | |
require(false); | |
} | |
function asserts(){ | |
assert(false); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment