aboutsummaryrefslogtreecommitdiffstats
path: root/docs/abi-spec.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-10-29 21:52:57 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-12-02 00:20:23 +0800
commit134cc73e8e6948553ba22691fc7e7661433dd123 (patch)
tree52c454fe655a1f5d45ebf2df75289af70c7c214a /docs/abi-spec.rst
parent4cad0b224b0f0913100c5957bef98786dc5a31c2 (diff)
downloaddexon-solidity-134cc73e8e6948553ba22691fc7e7661433dd123.tar.gz
dexon-solidity-134cc73e8e6948553ba22691fc7e7661433dd123.tar.zst
dexon-solidity-134cc73e8e6948553ba22691fc7e7661433dd123.zip
Enable struct abi example with experimental pragma
Diffstat (limited to 'docs/abi-spec.rst')
-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: