diff options
author | chriseth <chris@ethereum.org> | 2018-07-04 02:17:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-04 02:17:01 +0800 |
commit | 58aeffb45b206e8b55c3ae1cbc1f5a86157482fb (patch) | |
tree | 6402c116f6795df80955c21450c0a1e3a3aa5ead /test/libsolidity/SolidityABIJSON.cpp | |
parent | 96a04be6842a15bbad22fb67a6aab9a9e9130636 (diff) | |
parent | a7fc8a996b666ecd0c90c8addb422ef640f8887c (diff) | |
download | dexon-solidity-58aeffb45b206e8b55c3ae1cbc1f5a86157482fb.tar dexon-solidity-58aeffb45b206e8b55c3ae1cbc1f5a86157482fb.tar.gz dexon-solidity-58aeffb45b206e8b55c3ae1cbc1f5a86157482fb.tar.bz2 dexon-solidity-58aeffb45b206e8b55c3ae1cbc1f5a86157482fb.tar.lz dexon-solidity-58aeffb45b206e8b55c3ae1cbc1f5a86157482fb.tar.xz dexon-solidity-58aeffb45b206e8b55c3ae1cbc1f5a86157482fb.tar.zst dexon-solidity-58aeffb45b206e8b55c3ae1cbc1f5a86157482fb.zip |
Merge pull request #4413 from ethereum/dropConstantKeywordOnly
Drop constant keyword only
Diffstat (limited to 'test/libsolidity/SolidityABIJSON.cpp')
-rw-r--r-- | test/libsolidity/SolidityABIJSON.cpp | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/test/libsolidity/SolidityABIJSON.cpp b/test/libsolidity/SolidityABIJSON.cpp index a3ebd139..6994a290 100644 --- a/test/libsolidity/SolidityABIJSON.cpp +++ b/test/libsolidity/SolidityABIJSON.cpp @@ -306,62 +306,6 @@ BOOST_AUTO_TEST_CASE(view_function) checkInterface(sourceCode, interface); } -// constant is an alias to view above -BOOST_AUTO_TEST_CASE(constant_function) -{ - char const* sourceCode = R"( - contract test { - function foo(uint a, uint b) returns(uint d) { return a + b; } - function boo(uint32 a) constant returns(uint b) { return a * 4; } - } - )"; - - char const* interface = R"([ - { - "name": "foo", - "constant": false, - "payable" : false, - "stateMutability": "nonpayable", - "type": "function", - "inputs": [ - { - "name": "a", - "type": "uint256" - }, - { - "name": "b", - "type": "uint256" - } - ], - "outputs": [ - { - "name": "d", - "type": "uint256" - } - ] - }, - { - "name": "boo", - "constant": true, - "payable" : false, - "stateMutability": "view", - "type": "function", - "inputs": [{ - "name": "a", - "type": "uint32" - }], - "outputs": [ - { - "name": "b", - "type": "uint256" - } - ] - } - ])"; - - checkInterface(sourceCode, interface); -} - BOOST_AUTO_TEST_CASE(pure_function) { char const* sourceCode = R"( |