diff options
author | Erik Kundt <bitshift@posteo.org> | 2018-06-27 19:22:33 +0800 |
---|---|---|
committer | Erik Kundt <bitshift@posteo.org> | 2018-06-29 17:27:01 +0800 |
commit | 12c4eb769762d55a71ba05cf1b74b99797026f51 (patch) | |
tree | 821de9d9c03984aac3d60844c929792816e8bf1a /test/libsolidity/SolidityABIJSON.cpp | |
parent | c9cab803892a09386617faab6b4e1580ee2eaa47 (diff) | |
download | dexon-solidity-12c4eb769762d55a71ba05cf1b74b99797026f51.tar.gz dexon-solidity-12c4eb769762d55a71ba05cf1b74b99797026f51.tar.zst dexon-solidity-12c4eb769762d55a71ba05cf1b74b99797026f51.zip |
Updates compiled unit tests to new constructor syntax.
Diffstat (limited to 'test/libsolidity/SolidityABIJSON.cpp')
-rw-r--r-- | test/libsolidity/SolidityABIJSON.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/libsolidity/SolidityABIJSON.cpp b/test/libsolidity/SolidityABIJSON.cpp index b1c8e567..a3ebd139 100644 --- a/test/libsolidity/SolidityABIJSON.cpp +++ b/test/libsolidity/SolidityABIJSON.cpp @@ -672,7 +672,7 @@ BOOST_AUTO_TEST_CASE(constructor_abi) { char const* sourceCode = R"( contract test { - function test(uint param1, test param2, bool param3) {} + constructor(uint param1, test param2, bool param3) {} } )"; @@ -704,7 +704,7 @@ BOOST_AUTO_TEST_CASE(payable_constructor_abi) { char const* sourceCode = R"( contract test { - function test(uint param1, test param2, bool param3) payable {} + constructor(uint param1, test param2, bool param3) payable {} } )"; @@ -738,7 +738,7 @@ BOOST_AUTO_TEST_CASE(return_param_in_abi) char const* sourceCode = R"( contract test { enum ActionChoices { GoLeft, GoRight, GoStraight, Sit } - function test(ActionChoices param) {} + constructor(ActionChoices param) {} function ret() returns(ActionChoices) { ActionChoices action = ActionChoices.GoLeft; return action; |