Skip to content

Instantly share code, notes, and snippets.

@maurelian maurelian/errors.sol
Created Sep 19, 2017

Embed
What would you like to do?
A contract for comparing the behavior of error checks in solidity
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
You can’t perform that action at this time.