2017-07-16 16:10:17 +00:00
|
|
|
pragma solidity ^0.4.11;
|
|
|
|
|
2017-07-16 17:31:40 +00:00
|
|
|
library ZAMyLib {
|
2017-07-16 16:10:17 +00:00
|
|
|
|
|
|
|
function add(uint _a, uint _b) returns (uint _c) {
|
|
|
|
return _a + _b;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
contract Test {
|
|
|
|
|
|
|
|
function testAdd() constant returns (uint _result) {
|
2017-07-16 17:31:40 +00:00
|
|
|
return ZAMyLib.add(1, 2);
|
2017-07-16 16:10:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|