aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/ASTJsonConverter.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-24 22:23:00 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-24 22:23:00 +0800
commitdeeac7e2e0a1b8ffd0bbc709264d7bf37eb05536 (patch)
treec60783e5d37d453485cc06016d62376638e8c1bb /libsolidity/ast/ASTJsonConverter.cpp
parentd3fd6a8800ddd15be509971b516bb823bbd93b86 (diff)
downloaddexon-solidity-deeac7e2e0a1b8ffd0bbc709264d7bf37eb05536.tar.gz
dexon-solidity-deeac7e2e0a1b8ffd0bbc709264d7bf37eb05536.tar.zst
dexon-solidity-deeac7e2e0a1b8ffd0bbc709264d7bf37eb05536.zip
Rename statemutability to stateMutability in ABI/AST
Diffstat (limited to 'libsolidity/ast/ASTJsonConverter.cpp')
-rw-r--r--libsolidity/ast/ASTJsonConverter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/ast/ASTJsonConverter.cpp b/libsolidity/ast/ASTJsonConverter.cpp
index c0d635f3..afc53bfe 100644
--- a/libsolidity/ast/ASTJsonConverter.cpp
+++ b/libsolidity/ast/ASTJsonConverter.cpp
@@ -327,7 +327,7 @@ bool ASTJsonConverter::visit(FunctionDefinition const& _node)
// FIXME: remove with next breaking release
make_pair(m_legacy ? "constant" : "isDeclaredConst", _node.stateMutability() <= StateMutability::View),
make_pair("payable", _node.isPayable()),
- make_pair("statemutability", stateMutabilityToString(_node.stateMutability())),
+ make_pair("stateMutability", stateMutabilityToString(_node.stateMutability())),
make_pair("visibility", Declaration::visibilityToString(_node.visibility())),
make_pair("parameters", toJson(_node.parameterList())),
make_pair("isConstructor", _node.isConstructor()),
@@ -416,7 +416,7 @@ bool ASTJsonConverter::visit(FunctionTypeName const& _node)
setJsonNode(_node, "FunctionTypeName", {
make_pair("payable", _node.isPayable()),
make_pair("visibility", Declaration::visibilityToString(_node.visibility())),
- make_pair("statemutability", stateMutabilityToString(_node.stateMutability())),
+ make_pair("stateMutability", stateMutabilityToString(_node.stateMutability())),
// FIXME: remove with next breaking release
make_pair(m_legacy ? "constant" : "isDeclaredConst", _node.stateMutability() <= StateMutability::View),
make_pair("parameterTypes", toJson(*_node.parameterTypeList())),