diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-12-11 10:39:39 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-12-11 10:42:09 +0800 |
commit | b32d7a84fc8c69b96cb3f03091327d3e4657e495 (patch) | |
tree | 97f038ce58228eb61b4ccb4d397581c1a3685202 /test/libsolidity/SolidityABIJSON.cpp | |
parent | 9e36c189e50b033d25d3ab2342a7a0e673035a68 (diff) | |
download | dexon-solidity-b32d7a84fc8c69b96cb3f03091327d3e4657e495.tar dexon-solidity-b32d7a84fc8c69b96cb3f03091327d3e4657e495.tar.gz dexon-solidity-b32d7a84fc8c69b96cb3f03091327d3e4657e495.tar.bz2 dexon-solidity-b32d7a84fc8c69b96cb3f03091327d3e4657e495.tar.lz dexon-solidity-b32d7a84fc8c69b96cb3f03091327d3e4657e495.tar.xz dexon-solidity-b32d7a84fc8c69b96cb3f03091327d3e4657e495.tar.zst dexon-solidity-b32d7a84fc8c69b96cb3f03091327d3e4657e495.zip |
Move some struct tests to require ABIEncoderV2
Diffstat (limited to 'test/libsolidity/SolidityABIJSON.cpp')
-rw-r--r-- | test/libsolidity/SolidityABIJSON.cpp | 3 |
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; } |