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/GasMeter.cpp | |
parent | c9cab803892a09386617faab6b4e1580ee2eaa47 (diff) | |
download | dexon-solidity-12c4eb769762d55a71ba05cf1b74b99797026f51.tar dexon-solidity-12c4eb769762d55a71ba05cf1b74b99797026f51.tar.gz dexon-solidity-12c4eb769762d55a71ba05cf1b74b99797026f51.tar.bz2 dexon-solidity-12c4eb769762d55a71ba05cf1b74b99797026f51.tar.lz dexon-solidity-12c4eb769762d55a71ba05cf1b74b99797026f51.tar.xz dexon-solidity-12c4eb769762d55a71ba05cf1b74b99797026f51.tar.zst dexon-solidity-12c4eb769762d55a71ba05cf1b74b99797026f51.zip |
Updates compiled unit tests to new constructor syntax.
Diffstat (limited to 'test/libsolidity/GasMeter.cpp')
-rw-r--r-- | test/libsolidity/GasMeter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/GasMeter.cpp b/test/libsolidity/GasMeter.cpp index b0cd5a93..42965582 100644 --- a/test/libsolidity/GasMeter.cpp +++ b/test/libsolidity/GasMeter.cpp @@ -164,7 +164,7 @@ BOOST_AUTO_TEST_CASE(store_keccak256) char const* sourceCode = R"( contract test { bytes32 public shaValue; - function test(uint a) { + constructor(uint a) { shaValue = keccak256(abi.encodePacked(a)); } } @@ -178,7 +178,7 @@ BOOST_AUTO_TEST_CASE(updating_store) contract test { uint data; uint data2; - function test() { + constructor() { data = 1; data = 2; data2 = 0; |