aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/abi-spec.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/abi-spec.rst b/docs/abi-spec.rst
index c93ce25b..e968fb06 100644
--- a/docs/abi-spec.rst
+++ b/docs/abi-spec.rst
@@ -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: