diff options
author | Paweł Bylica <chfast@gmail.com> | 2015-06-11 00:01:03 +0800 |
---|---|---|
committer | Paweł Bylica <chfast@gmail.com> | 2015-06-11 00:01:03 +0800 |
commit | 5d534416b1115e54e86aaa04e248f88f6d34cd41 (patch) | |
tree | 8adb81f80ff0099c836618cfd200df0a3f2bd48d /libsolidity/SolidityABIJSON.cpp | |
parent | 7557e4b73f66aaf03e7f274036bac18792a480f4 (diff) | |
parent | bcecae082219abb99157aca5afe9440fac20b516 (diff) | |
download | dexon-solidity-5d534416b1115e54e86aaa04e248f88f6d34cd41.tar dexon-solidity-5d534416b1115e54e86aaa04e248f88f6d34cd41.tar.gz dexon-solidity-5d534416b1115e54e86aaa04e248f88f6d34cd41.tar.bz2 dexon-solidity-5d534416b1115e54e86aaa04e248f88f6d34cd41.tar.lz dexon-solidity-5d534416b1115e54e86aaa04e248f88f6d34cd41.tar.xz dexon-solidity-5d534416b1115e54e86aaa04e248f88f6d34cd41.tar.zst dexon-solidity-5d534416b1115e54e86aaa04e248f88f6d34cd41.zip |
Merge remote-tracking branch 'upstream/develop' into evmjit-develop
Conflicts:
evmjit/libevmjit-cpp/JitVM.cpp
evmjit/libevmjit-cpp/JitVM.h
Diffstat (limited to 'libsolidity/SolidityABIJSON.cpp')
-rw-r--r-- | libsolidity/SolidityABIJSON.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libsolidity/SolidityABIJSON.cpp b/libsolidity/SolidityABIJSON.cpp index f9bf78d0..f7390dc9 100644 --- a/libsolidity/SolidityABIJSON.cpp +++ b/libsolidity/SolidityABIJSON.cpp @@ -568,6 +568,33 @@ BOOST_AUTO_TEST_CASE(return_param_in_abi) checkInterface(sourceCode, interface); } +BOOST_AUTO_TEST_CASE(strings_and_arrays) +{ + // bug #1801 + char const* sourceCode = R"( + contract test { + function f(string a, bytes b, uint[] c) external {} + } + )"; + + char const* interface = R"( + [ + { + "constant" : false, + "name": "f", + "inputs": [ + { "name": "a", "type": "string" }, + { "name": "b", "type": "bytes" }, + { "name": "c", "type": "uint256[]" } + ], + "outputs": [], + "type" : "function" + } + ] + )"; + checkInterface(sourceCode, interface); +} + BOOST_AUTO_TEST_SUITE_END() } |