aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityABIJSON.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-12-11 18:58:53 +0800
committerGitHub <noreply@github.com>2017-12-11 18:58:53 +0800
commit4a1f18c951f0a056b6a692d196f22bdb810e8ffc (patch)
tree97f038ce58228eb61b4ccb4d397581c1a3685202 /test/libsolidity/SolidityABIJSON.cpp
parent226bfe5be1f7443e644d2cfd62aac19b56836b8a (diff)
parentb32d7a84fc8c69b96cb3f03091327d3e4657e495 (diff)
downloaddexon-solidity-4a1f18c951f0a056b6a692d196f22bdb810e8ffc.tar
dexon-solidity-4a1f18c951f0a056b6a692d196f22bdb810e8ffc.tar.gz
dexon-solidity-4a1f18c951f0a056b6a692d196f22bdb810e8ffc.tar.bz2
dexon-solidity-4a1f18c951f0a056b6a692d196f22bdb810e8ffc.tar.lz
dexon-solidity-4a1f18c951f0a056b6a692d196f22bdb810e8ffc.tar.xz
dexon-solidity-4a1f18c951f0a056b6a692d196f22bdb810e8ffc.tar.zst
dexon-solidity-4a1f18c951f0a056b6a692d196f22bdb810e8ffc.zip
Merge pull request #3272 from ethereum/suggest-structs
Suggest the experimental ABI encoder if using structs as function parameters
Diffstat (limited to 'test/libsolidity/SolidityABIJSON.cpp')
-rw-r--r--test/libsolidity/SolidityABIJSON.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityABIJSON.cpp b/test/libsolidity/SolidityABIJSON.cpp
index 33962730..26bfb6d0 100644
--- a/test/libsolidity/SolidityABIJSON.cpp
+++ b/test/libsolidity/SolidityABIJSON.cpp
@@ -942,6 +942,7 @@ BOOST_AUTO_TEST_CASE(function_type)
BOOST_AUTO_TEST_CASE(return_structs)
{
char const* text = R"(
+ pragma experimental ABIEncoderV2;
contract C {
struct S { uint a; T[] sub; }
struct T { uint[2] x; }
@@ -991,6 +992,7 @@ BOOST_AUTO_TEST_CASE(return_structs)
BOOST_AUTO_TEST_CASE(return_structs_with_contracts)
{
char const* text = R"(
+ pragma experimental ABIEncoderV2;
contract C {
struct S { C[] x; C y; }
function f() returns (S s, C c) {
@@ -1090,6 +1092,7 @@ BOOST_AUTO_TEST_CASE(event_structs)
BOOST_AUTO_TEST_CASE(structs_in_libraries)
{
char const* text = R"(
+ pragma experimental ABIEncoderV2;
library L {
struct S { uint a; T[] sub; bytes b; }
struct T { uint[2] x; }