18 lines
233 B
Solidity
18 lines
233 B
Solidity
|
pragma solidity ^0.4.11;
|
||
|
|
||
|
library AMyLib {
|
||
|
|
||
|
function add(uint _a, uint _b) returns (uint _c) {
|
||
|
return _a + _b;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
contract Test {
|
||
|
|
||
|
function testAdd() constant returns (uint _result) {
|
||
|
return AMyLib.add(1, 2);
|
||
|
}
|
||
|
|
||
|
}
|