mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Automated ABI Json tests.
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
pragma experimental ABIEncoderV2;
|
||||
library L {
|
||||
struct S { uint a; T[] sub; bytes b; }
|
||||
struct T { uint[2] x; }
|
||||
function f(L.S storage s) public view {}
|
||||
function g(L.S memory s) public view {}
|
||||
}
|
||||
// ----
|
||||
// :L
|
||||
// [
|
||||
// {
|
||||
// "constant": true,
|
||||
// "inputs":
|
||||
// [
|
||||
// {
|
||||
// "components":
|
||||
// [
|
||||
// {
|
||||
// "name": "a",
|
||||
// "type": "uint256"
|
||||
// },
|
||||
// {
|
||||
// "components":
|
||||
// [
|
||||
// {
|
||||
// "name": "x",
|
||||
// "type": "uint256[2]"
|
||||
// }
|
||||
// ],
|
||||
// "name": "sub",
|
||||
// "type": "tuple[]"
|
||||
// },
|
||||
// {
|
||||
// "name": "b",
|
||||
// "type": "bytes"
|
||||
// }
|
||||
// ],
|
||||
// "name": "s",
|
||||
// "type": "tuple"
|
||||
// }
|
||||
// ],
|
||||
// "name": "g",
|
||||
// "outputs": [],
|
||||
// "payable": false,
|
||||
// "stateMutability": "view",
|
||||
// "type": "function"
|
||||
// }
|
||||
// ]
|
||||
Reference in New Issue
Block a user