diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-09-08 09:18:17 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-23 01:24:22 +0800 |
commit | efe4d68a7bdc55fd79b9e01b863064b27528428a (patch) | |
tree | 66fed23805dcf2dffdb2bc8509ddf077ac99e45d /libsolidity/interface | |
parent | 210b4870a805620329793c8ba2177a3ff6e7b477 (diff) | |
download | dexon-solidity-efe4d68a7bdc55fd79b9e01b863064b27528428a.tar dexon-solidity-efe4d68a7bdc55fd79b9e01b863064b27528428a.tar.gz dexon-solidity-efe4d68a7bdc55fd79b9e01b863064b27528428a.tar.bz2 dexon-solidity-efe4d68a7bdc55fd79b9e01b863064b27528428a.tar.lz dexon-solidity-efe4d68a7bdc55fd79b9e01b863064b27528428a.tar.xz dexon-solidity-efe4d68a7bdc55fd79b9e01b863064b27528428a.tar.zst dexon-solidity-efe4d68a7bdc55fd79b9e01b863064b27528428a.zip |
Introduce view (and keep constant as an alias)
Diffstat (limited to 'libsolidity/interface')
-rw-r--r-- | libsolidity/interface/ABI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/interface/ABI.cpp b/libsolidity/interface/ABI.cpp index a7224e86..6e8563f7 100644 --- a/libsolidity/interface/ABI.cpp +++ b/libsolidity/interface/ABI.cpp @@ -35,7 +35,8 @@ Json::Value ABI::generate(ContractDefinition const& _contractDef) Json::Value method; method["type"] = "function"; method["name"] = it.second->declaration().name(); - method["constant"] = it.second->isConstant(); + // TODO: deprecate constant in a future release + method["constant"] = it.second->stateMutability() == StateMutability::View; method["payable"] = it.second->isPayable(); method["statemutability"] = stateMutabilityToString(it.second->stateMutability()); method["inputs"] = formatTypeList( |