Automated ABI Json tests.

This commit is contained in:
chriseth
2019-07-02 18:11:49 +02:00
parent 776fec1913
commit a4ef435c07
30 changed files with 1137 additions and 1088 deletions
@@ -0,0 +1,57 @@
pragma experimental ABIEncoderV2;
contract C {
struct S { uint a; T[] sub; bytes b; }
struct T { uint[2] x; }
event E(T t, S s);
}
// ----
// :C
// [
// {
// "anonymous": false,
// "inputs":
// [
// {
// "components":
// [
// {
// "name": "x",
// "type": "uint256[2]"
// }
// ],
// "indexed": false,
// "name": "t",
// "type": "tuple"
// },
// {
// "components":
// [
// {
// "name": "a",
// "type": "uint256"
// },
// {
// "components":
// [
// {
// "name": "x",
// "type": "uint256[2]"
// }
// ],
// "name": "sub",
// "type": "tuple[]"
// },
// {
// "name": "b",
// "type": "bytes"
// }
// ],
// "indexed": false,
// "name": "s",
// "type": "tuple"
// }
// ],
// "name": "E",
// "type": "event"
// }
// ]