solidity/test/libsolidity/ABIJson/return_structs_with_contracts.sol
2019-07-18 16:54:11 +02:00

45 lines
933 B
Solidity

pragma experimental ABIEncoderV2;
contract C {
struct S { C[] x; C y; }
function f() public returns (S memory s, C c) {
}
}
// ----
// :C
// [
// {
// "constant": false,
// "inputs": [],
// "name": "f",
// "outputs":
// [
// {
// "components":
// [
// {
// "internalType": "contract C[]",
// "name": "x",
// "type": "address[]"
// },
// {
// "internalType": "contract C",
// "name": "y",
// "type": "address"
// }
// ],
// "internalType": "struct C.S",
// "name": "s",
// "type": "tuple"
// },
// {
// "internalType": "contract C",
// "name": "c",
// "type": "address"
// }
// ],
// "payable": false,
// "stateMutability": "nonpayable",
// "type": "function"
// }
// ]