diff --git a/solidity_examples/exceptions.sol b/solidity_examples/exceptions.sol index 78a3f6a0..95c42da0 100644 --- a/solidity_examples/exceptions.sol +++ b/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; }