aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityABIJSON.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-07-04 02:17:01 +0800
committerGitHub <noreply@github.com>2018-07-04 02:17:01 +0800
commit58aeffb45b206e8b55c3ae1cbc1f5a86157482fb (patch)
tree6402c116f6795df80955c21450c0a1e3a3aa5ead /test/libsolidity/SolidityABIJSON.cpp
parent96a04be6842a15bbad22fb67a6aab9a9e9130636 (diff)
parenta7fc8a996b666ecd0c90c8addb422ef640f8887c (diff)
downloaddexon-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.cpp56
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"(