diff options
author | Paweł Bylica <chfast@gmail.com> | 2015-06-03 23:16:33 +0800 |
---|---|---|
committer | Paweł Bylica <chfast@gmail.com> | 2015-06-03 23:16:33 +0800 |
commit | 3bacb6f3776ffcf9cf13c1dbc733f24a430337fd (patch) | |
tree | d8a89f6d510a5b2eb52e9b1760c7b0a0b375879c /libsolidity/SolidityABIJSON.cpp | |
parent | 77dd832403a7f4dc11c60b25f6eec786a80c6e08 (diff) | |
parent | 0e8ce9d069b92f98fc4e96a75da11c63276b8cf7 (diff) | |
download | dexon-solidity-3bacb6f3776ffcf9cf13c1dbc733f24a430337fd.tar dexon-solidity-3bacb6f3776ffcf9cf13c1dbc733f24a430337fd.tar.gz dexon-solidity-3bacb6f3776ffcf9cf13c1dbc733f24a430337fd.tar.bz2 dexon-solidity-3bacb6f3776ffcf9cf13c1dbc733f24a430337fd.tar.lz dexon-solidity-3bacb6f3776ffcf9cf13c1dbc733f24a430337fd.tar.xz dexon-solidity-3bacb6f3776ffcf9cf13c1dbc733f24a430337fd.tar.zst dexon-solidity-3bacb6f3776ffcf9cf13c1dbc733f24a430337fd.zip |
Merge remote-tracking branch 'upstream/develop' into refactor_executive
Conflicts:
test/libsolidity/solidityExecutionFramework.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() } |