aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityABIJSON.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-06-29 21:45:26 +0800
committerGitHub <noreply@github.com>2018-06-29 21:45:26 +0800
commite289c36158701ba0b874051e9e426e270b0e38e2 (patch)
tree2d19dff8180f4c4a8d25ef7414820f57f3e265af /test/libsolidity/SolidityABIJSON.cpp
parent975dddf1b17e50a13cebdabcf885dcc800bd1742 (diff)
parente6d250772d1a42c5ac113a4e045e8365805ee300 (diff)
downloaddexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.tar
dexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.tar.gz
dexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.tar.bz2
dexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.tar.lz
dexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.tar.xz
dexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.tar.zst
dexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.zip
Merge pull request #4354 from ethereum/constructorSyntaxTests
Updates tests to new constructor syntax
Diffstat (limited to 'test/libsolidity/SolidityABIJSON.cpp')
-rw-r--r--test/libsolidity/SolidityABIJSON.cpp6
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;