diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-04-23 00:53:58 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-04-27 19:08:32 +0800 |
commit | 21ced7e9c5123255dae9da0ba7a09e7545df6383 (patch) | |
tree | 04401b3639c4a8fe85f3f3d85ee84f6ef8812dde /libsolidity/SolidityABIJSON.cpp | |
parent | 5b07f1133029e04c6db8510d80634d606e9d0e8e (diff) | |
download | dexon-solidity-21ced7e9c5123255dae9da0ba7a09e7545df6383.tar.gz dexon-solidity-21ced7e9c5123255dae9da0ba7a09e7545df6383.tar.zst dexon-solidity-21ced7e9c5123255dae9da0ba7a09e7545df6383.zip |
changed the test so constructor will have input parameters
Diffstat (limited to 'libsolidity/SolidityABIJSON.cpp')
-rw-r--r-- | libsolidity/SolidityABIJSON.cpp | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/libsolidity/SolidityABIJSON.cpp b/libsolidity/SolidityABIJSON.cpp index f9ecb7d9..26d0110b 100644 --- a/libsolidity/SolidityABIJSON.cpp +++ b/libsolidity/SolidityABIJSON.cpp @@ -499,14 +499,27 @@ BOOST_AUTO_TEST_CASE(constructor_abi) { char const* sourceCode = R"( contract test { - function test() { + function test(uint param1, test param2, bool param3) {} } - })"; + )"; char const* interface = R"([ { - "inputs" : [], - "type" : "constructor" + "inputs": [ + { + "name": "param1", + "type": "uint256" + }, + { + "name": "param2", + "type": "address" + }, + { + "name": "param3", + "type": "bool" + } + ], + "type": "constructor" } ])"; checkInterface(sourceCode, interface); |