Add require statement to exception test file

pull/79/head
Bernhard Mueller 7 years ago
parent c3c9b7d635
commit f4e59047ef
  1. 4
      solidity_examples/exceptions.sol

@ -16,6 +16,10 @@ contract Exceptions {
assert(input != 23);
}
function requireisfine(uint256 input) {
require(input != 23);
}
function divisionby0(uint256 input) {
uint256 i = 1/input;
}

Loading…
Cancel
Save