diff options
author | chriseth <chris@ethereum.org> | 2018-06-29 21:45:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-29 21:45:26 +0800 |
commit | e289c36158701ba0b874051e9e426e270b0e38e2 (patch) | |
tree | 2d19dff8180f4c4a8d25ef7414820f57f3e265af /test/libsolidity/GasMeter.cpp | |
parent | 975dddf1b17e50a13cebdabcf885dcc800bd1742 (diff) | |
parent | e6d250772d1a42c5ac113a4e045e8365805ee300 (diff) | |
download | dexon-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/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; |