Skip to content

Commit

Permalink
Add require statement to exception test file
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerberndt committed Mar 12, 2018
1 parent c3c9b7d commit f4e5904
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions solidity_examples/exceptions.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ contract Exceptions {
assert(input != 23);
}

function requireisfine(uint256 input) {
require(input != 23);
}

function divisionby0(uint256 input) {
uint256 i = 1/input;
}
Expand Down

0 comments on commit f4e5904

Please sign in to comment.