Created
July 27, 2018 11:13
-
-
Save Enigmatic331/f07b1bb6d4d5b4cd7ad8c65ac08deea0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.24; | |
library C { | |
function add(uint256 a, uint256 b) pure returns (uint256) { | |
uint256 c = a + b; | |
assert(c >= a); | |
return c; | |
} | |
} | |
contract A { | |
function a() constant returns (uint256) { | |
uint256 x = 50; | |
return C.add(50, x); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment