embark-area-51/test_app/app/contracts/test.sol

18 lines
250 B
Solidity

pragma solidity ^0.4.11;
library ZAMyLib {
function add(uint _a, uint _b) public pure returns (uint _c) {
return _a + _b;
}
}
contract Test {
function testAdd() public pure returns (uint _result) {
return ZAMyLib.add(1, 2);
}
}