Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```
- pragma lity >= 1.2 .3;
- contract TestIntegerOverflow {
- event LogOverflow(safeuint _value1, safeuint _value2, safeuint result);
- function invokeOverflow(safeuint _value1, safeuint _value2) public {
- safeuint result = _value1 + _value2;
- emit LogOverflow(_value1, _value2, result);
- }
- }
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement