Skip to content

Instantly share code, notes, and snippets.

@Enigmatic331
Created July 27, 2018 11:16
Show Gist options
  • Save Enigmatic331/edf6bd51536a028a9c23ce6826c68d43 to your computer and use it in GitHub Desktop.
Save Enigmatic331/edf6bd51536a028a9c23ce6826c68d43 to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.24;
library C {
function add(uint256 a, uint256 b) internal 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