diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-15 09:26:24 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-24 20:46:18 +0800 |
commit | 5668377c721c48f03518a02d0b3e45b5b61a52f6 (patch) | |
tree | 6a9d0aad4eb25219debe2019697d89c579f32358 /libsolidity/interface | |
parent | 65d78f36c1f5b88546261bc005ef952065d34adf (diff) | |
download | dexon-solidity-5668377c721c48f03518a02d0b3e45b5b61a52f6.tar dexon-solidity-5668377c721c48f03518a02d0b3e45b5b61a52f6.tar.gz dexon-solidity-5668377c721c48f03518a02d0b3e45b5b61a52f6.tar.bz2 dexon-solidity-5668377c721c48f03518a02d0b3e45b5b61a52f6.tar.lz dexon-solidity-5668377c721c48f03518a02d0b3e45b5b61a52f6.tar.xz dexon-solidity-5668377c721c48f03518a02d0b3e45b5b61a52f6.tar.zst dexon-solidity-5668377c721c48f03518a02d0b3e45b5b61a52f6.zip |
Introduce pure specifier on functions
Diffstat (limited to 'libsolidity/interface')
-rw-r--r-- | libsolidity/interface/ABI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/interface/ABI.cpp b/libsolidity/interface/ABI.cpp index 6e8563f7..dd56ff6d 100644 --- a/libsolidity/interface/ABI.cpp +++ b/libsolidity/interface/ABI.cpp @@ -36,7 +36,7 @@ Json::Value ABI::generate(ContractDefinition const& _contractDef) method["type"] = "function"; method["name"] = it.second->declaration().name(); // TODO: deprecate constant in a future release - method["constant"] = it.second->stateMutability() == StateMutability::View; + method["constant"] = it.second->stateMutability() == StateMutability::Pure || it.second->stateMutability() == StateMutability::View; method["payable"] = it.second->isPayable(); method["statemutability"] = stateMutabilityToString(it.second->stateMutability()); method["inputs"] = formatTypeList( |