diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-24 22:23:00 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-24 22:23:00 +0800 |
commit | deeac7e2e0a1b8ffd0bbc709264d7bf37eb05536 (patch) | |
tree | c60783e5d37d453485cc06016d62376638e8c1bb /libsolidity/interface/ABI.cpp | |
parent | d3fd6a8800ddd15be509971b516bb823bbd93b86 (diff) | |
download | dexon-solidity-deeac7e2e0a1b8ffd0bbc709264d7bf37eb05536.tar.gz dexon-solidity-deeac7e2e0a1b8ffd0bbc709264d7bf37eb05536.tar.zst dexon-solidity-deeac7e2e0a1b8ffd0bbc709264d7bf37eb05536.zip |
Rename statemutability to stateMutability in ABI/AST
Diffstat (limited to 'libsolidity/interface/ABI.cpp')
-rw-r--r-- | libsolidity/interface/ABI.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/interface/ABI.cpp b/libsolidity/interface/ABI.cpp index dd56ff6d..3df9d1f8 100644 --- a/libsolidity/interface/ABI.cpp +++ b/libsolidity/interface/ABI.cpp @@ -38,7 +38,7 @@ Json::Value ABI::generate(ContractDefinition const& _contractDef) // TODO: deprecate constant in a future release method["constant"] = it.second->stateMutability() == StateMutability::Pure || it.second->stateMutability() == StateMutability::View; method["payable"] = it.second->isPayable(); - method["statemutability"] = stateMutabilityToString(it.second->stateMutability()); + method["stateMutability"] = stateMutabilityToString(it.second->stateMutability()); method["inputs"] = formatTypeList( externalFunctionType->parameterNames(), externalFunctionType->parameterTypes(), @@ -58,7 +58,7 @@ Json::Value ABI::generate(ContractDefinition const& _contractDef) auto externalFunction = FunctionType(*_contractDef.constructor(), false).interfaceFunctionType(); solAssert(!!externalFunction, ""); method["payable"] = externalFunction->isPayable(); - method["statemutability"] = stateMutabilityToString(externalFunction->stateMutability()); + method["stateMutability"] = stateMutabilityToString(externalFunction->stateMutability()); method["inputs"] = formatTypeList( externalFunction->parameterNames(), externalFunction->parameterTypes(), @@ -73,7 +73,7 @@ Json::Value ABI::generate(ContractDefinition const& _contractDef) Json::Value method; method["type"] = "fallback"; method["payable"] = externalFunctionType->isPayable(); - method["statemutability"] = stateMutabilityToString(externalFunctionType->stateMutability()); + method["stateMutability"] = stateMutabilityToString(externalFunctionType->stateMutability()); abi.append(method); } for (auto const& it: _contractDef.interfaceEvents()) |