aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/SolidityABIJSON.cpp
diff options
context:
space:
mode:
authorPaweł Bylica <chfast@gmail.com>2015-06-02 17:57:13 +0800
committerPaweł Bylica <chfast@gmail.com>2015-06-02 17:57:13 +0800
commit6a64d187803ef355dd0be22903a0e16c447b1348 (patch)
treef555ba9e1463cddf1d0750f8250968b946a51895 /libsolidity/SolidityABIJSON.cpp
parentbef2f9ea2cd1b09f80dcec032a2c31a4bb0f1acd (diff)
parent8f3e1cd127a75a2f877b8ef1e727d07a76f0cfa9 (diff)
downloaddexon-solidity-6a64d187803ef355dd0be22903a0e16c447b1348.tar
dexon-solidity-6a64d187803ef355dd0be22903a0e16c447b1348.tar.gz
dexon-solidity-6a64d187803ef355dd0be22903a0e16c447b1348.tar.bz2
dexon-solidity-6a64d187803ef355dd0be22903a0e16c447b1348.tar.lz
dexon-solidity-6a64d187803ef355dd0be22903a0e16c447b1348.tar.xz
dexon-solidity-6a64d187803ef355dd0be22903a0e16c447b1348.tar.zst
dexon-solidity-6a64d187803ef355dd0be22903a0e16c447b1348.zip
Merge remote-tracking branch 'upstream/develop' into feature/vm_gas_counter_refactor
Conflicts: libethereum/Executive.h
Diffstat (limited to 'libsolidity/SolidityABIJSON.cpp')
-rw-r--r--libsolidity/SolidityABIJSON.cpp27
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()
}