2017-10-22 09:38:54 -04:00
|
|
|
pragma solidity ^0.4.17;
|
2017-07-16 12:10:17 -04:00
|
|
|
|
2017-07-16 13:31:40 -04:00
|
|
|
library ZAMyLib {
|
2017-07-16 12:10:17 -04:00
|
|
|
|
2017-10-21 15:01:09 -04:00
|
|
|
function add(uint _a, uint _b) public pure returns (uint _c) {
|
2017-07-16 12:10:17 -04:00
|
|
|
return _a + _b;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
contract Test {
|
2017-12-20 09:41:52 -05:00
|
|
|
address public addr;
|
2017-07-16 12:10:17 -04:00
|
|
|
|
2017-10-21 15:01:09 -04:00
|
|
|
function testAdd() public pure returns (uint _result) {
|
2017-07-16 13:31:40 -04:00
|
|
|
return ZAMyLib.add(1, 2);
|
2017-07-16 12:10:17 -04:00
|
|
|
}
|
|
|
|
|
2017-12-20 09:41:52 -05:00
|
|
|
function changeAddress(address _addr) public {
|
|
|
|
addr = _addr;
|
|
|
|
}
|
|
|
|
|
2018-10-05 14:49:10 +05:30
|
|
|
function changeAddress2(address _addr) public {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2017-07-16 12:10:17 -04:00
|
|
|
}
|