aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/ABIDecoderTests.cpp
diff options
context:
space:
mode:
authorErik Kundt <bitshift@posteo.org>2018-06-27 19:22:33 +0800
committerErik Kundt <bitshift@posteo.org>2018-06-29 17:27:01 +0800
commit12c4eb769762d55a71ba05cf1b74b99797026f51 (patch)
tree821de9d9c03984aac3d60844c929792816e8bf1a /test/libsolidity/ABIDecoderTests.cpp
parentc9cab803892a09386617faab6b4e1580ee2eaa47 (diff)
downloaddexon-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/ABIDecoderTests.cpp')
-rw-r--r--test/libsolidity/ABIDecoderTests.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/libsolidity/ABIDecoderTests.cpp b/test/libsolidity/ABIDecoderTests.cpp
index b588ca1b..c122d806 100644
--- a/test/libsolidity/ABIDecoderTests.cpp
+++ b/test/libsolidity/ABIDecoderTests.cpp
@@ -287,7 +287,7 @@ BOOST_AUTO_TEST_CASE(decode_from_memory_simple)
contract C {
uint public _a;
uint[] public _b;
- function C(uint a, uint[] b) {
+ constructor(uint a, uint[] b) {
_a = a;
_b = b;
}
@@ -312,7 +312,7 @@ BOOST_AUTO_TEST_CASE(decode_function_type)
string sourceCode = R"(
contract D {
function () external returns (uint) public _a;
- function D(function () external returns (uint) a) {
+ constructor(function () external returns (uint) a) {
_a = a;
}
}
@@ -346,13 +346,13 @@ BOOST_AUTO_TEST_CASE(decode_function_type_array)
string sourceCode = R"(
contract D {
function () external returns (uint)[] public _a;
- function D(function () external returns (uint)[] a) {
+ constructor(function () external returns (uint)[] a) {
_a = a;
}
}
contract E {
function () external returns (uint)[3] public _a;
- function E(function () external returns (uint)[3] a) {
+ constructor(function () external returns (uint)[3] a) {
_a = a;
}
}
@@ -414,7 +414,7 @@ BOOST_AUTO_TEST_CASE(decode_from_memory_complex)
uint public _a;
uint[] public _b;
bytes[2] public _c;
- function C(uint a, uint[] b, bytes[2] c) {
+ constructor(uint a, uint[] b, bytes[2] c) {
_a = a;
_b = b;
_c = c;