solidity/test/libsolidity/ABIJson/library_function.sol

38 lines
863 B
Solidity
Raw Normal View History

2019-07-02 15:30:54 +00:00
library test {
struct StructType { uint a; }
function f(StructType storage b, uint[] storage c, test d) public returns (uint[] memory e, StructType storage f) { f = f; }
function f1(uint[] memory c, test d) public pure returns (uint[] memory e) { }
}
// ----
// :test
// [
// {
// "constant": true,
// "inputs":
// [
// {
2019-07-02 14:04:52 +00:00
// "internalType": "uint256[]",
2019-07-02 15:30:54 +00:00
// "name": "c",
// "type": "uint256[]"
// },
// {
2019-07-02 14:04:52 +00:00
// "internalType": "library test",
2019-07-02 15:30:54 +00:00
// "name": "d",
// "type": "test"
// }
// ],
// "name": "f1",
// "outputs":
// [
// {
2019-07-02 14:04:52 +00:00
// "internalType": "uint256[]",
2019-07-02 15:30:54 +00:00
// "name": "e",
// "type": "uint256[]"
// }
// ],
// "payable": false,
// "stateMutability": "pure",
// "type": "function"
// }
// ]