diff options
author | Leonardo Alt <leo@ethereum.org> | 2018-08-02 01:01:50 +0800 |
---|---|---|
committer | Leonardo Alt <leo@ethereum.org> | 2018-08-03 19:41:27 +0800 |
commit | 20c6cea7bb803a5217f6b96062c7bce150ba2b73 (patch) | |
tree | 4e1dcf9400c354b05aaffdc42daf4bfcd988c7fc /test/libsolidity/SolidityABIJSON.cpp | |
parent | da6cefd475210a9bcae0aad80c03f3679ae00f56 (diff) | |
download | dexon-solidity-20c6cea7bb803a5217f6b96062c7bce150ba2b73.tar.gz dexon-solidity-20c6cea7bb803a5217f6b96062c7bce150ba2b73.tar.zst dexon-solidity-20c6cea7bb803a5217f6b96062c7bce150ba2b73.zip |
Disallow structs in events without ABIEncoderV2
Diffstat (limited to 'test/libsolidity/SolidityABIJSON.cpp')
-rw-r--r-- | test/libsolidity/SolidityABIJSON.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityABIJSON.cpp b/test/libsolidity/SolidityABIJSON.cpp index f2d6d66f..0b2e23e6 100644 --- a/test/libsolidity/SolidityABIJSON.cpp +++ b/test/libsolidity/SolidityABIJSON.cpp @@ -980,6 +980,7 @@ BOOST_AUTO_TEST_CASE(return_structs_with_contracts) BOOST_AUTO_TEST_CASE(event_structs) { char const* text = R"( + pragma experimental ABIEncoderV2; contract C { struct S { uint a; T[] sub; bytes b; } struct T { uint[2] x; } |