Enable struct abi example with experimental pragma

This commit is contained in:
Alex Beregszaszi 2017-10-29 13:52:57 +00:00
parent 4cad0b224b
commit 134cc73e8e

View File

@ -377,10 +377,14 @@ As an example, the code
::
pragma solidity ^0.4.19;
pragma experimental ABIEncoderV2;
contract Test {
struct S { uint a; uint[] b; T[] c; }
struct T { uint x; uint y; }
function f(S s, T t, uint a) { }
function g() returns (S s, T t, uint a) {}
}
would result in the JSON: