diff options
author | subtly <subtly@users.noreply.github.com> | 2015-04-28 07:47:18 +0800 |
---|---|---|
committer | subtly <subtly@users.noreply.github.com> | 2015-04-28 07:47:18 +0800 |
commit | 8d8f7c69286b6e7b73d4f1560d2d0d4d61317153 (patch) | |
tree | c636e0b0555f76fac295f055961d9da17fdd210f /libsolidity/SolidityABIJSON.cpp | |
parent | fb589c54acc8f7aa1da162f76b83e5958a9bdc13 (diff) | |
parent | b405125701297b0a6c354ae0c54d2da1a4c20fb1 (diff) | |
download | dexon-solidity-8d8f7c69286b6e7b73d4f1560d2d0d4d61317153.tar dexon-solidity-8d8f7c69286b6e7b73d4f1560d2d0d4d61317153.tar.gz dexon-solidity-8d8f7c69286b6e7b73d4f1560d2d0d4d61317153.tar.bz2 dexon-solidity-8d8f7c69286b6e7b73d4f1560d2d0d4d61317153.tar.lz dexon-solidity-8d8f7c69286b6e7b73d4f1560d2d0d4d61317153.tar.xz dexon-solidity-8d8f7c69286b6e7b73d4f1560d2d0d4d61317153.tar.zst dexon-solidity-8d8f7c69286b6e7b73d4f1560d2d0d4d61317153.zip |
Merge branch 'develop' into discovery
Diffstat (limited to 'libsolidity/SolidityABIJSON.cpp')
-rw-r--r-- | libsolidity/SolidityABIJSON.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libsolidity/SolidityABIJSON.cpp b/libsolidity/SolidityABIJSON.cpp index f0e54a94..26d0110b 100644 --- a/libsolidity/SolidityABIJSON.cpp +++ b/libsolidity/SolidityABIJSON.cpp @@ -495,6 +495,36 @@ BOOST_AUTO_TEST_CASE(empty_name_return_parameter) checkInterface(sourceCode, interface); } +BOOST_AUTO_TEST_CASE(constructor_abi) +{ + char const* sourceCode = R"( + contract test { + function test(uint param1, test param2, bool param3) {} + } + )"; + + char const* interface = R"([ + { + "inputs": [ + { + "name": "param1", + "type": "uint256" + }, + { + "name": "param2", + "type": "address" + }, + { + "name": "param3", + "type": "bool" + } + ], + "type": "constructor" + } + ])"; + checkInterface(sourceCode, interface); +} + BOOST_AUTO_TEST_SUITE_END() } |