aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-12-11 21:26:15 +0800
committerGitHub <noreply@github.com>2017-12-11 21:26:15 +0800
commiteebeb52aed6edb3896137f796aca344eb831cafc (patch)
tree8856c64ef4c89524c45e26c470ca4e79a0000c31 /docs
parent27f38fb5b31b9f0c228238cf0471155498b951b7 (diff)
parent134cc73e8e6948553ba22691fc7e7661433dd123 (diff)
downloaddexon-solidity-eebeb52aed6edb3896137f796aca344eb831cafc.tar
dexon-solidity-eebeb52aed6edb3896137f796aca344eb831cafc.tar.gz
dexon-solidity-eebeb52aed6edb3896137f796aca344eb831cafc.tar.bz2
dexon-solidity-eebeb52aed6edb3896137f796aca344eb831cafc.tar.lz
dexon-solidity-eebeb52aed6edb3896137f796aca344eb831cafc.tar.xz
dexon-solidity-eebeb52aed6edb3896137f796aca344eb831cafc.tar.zst
dexon-solidity-eebeb52aed6edb3896137f796aca344eb831cafc.zip
Merge pull request #3228 from ethereum/docs-tests-struct
Enable struct abi example with experimental pragma
Diffstat (limited to 'docs')
-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: