aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authoryann300 <yann.levreau@gmail.com>2016-11-03 23:36:38 +0800
committeryann300 <yann.levreau@gmail.com>2016-11-03 23:36:38 +0800
commit02416d4460ed2b4ff2c0311181abb6f836bebce3 (patch)
tree26d251be4547d7da819c5c64c81efc032980a109 /libsolidity
parent90a4acc3a52a3bff22dbb713c808fe9c27eae550 (diff)
downloaddexon-solidity-02416d4460ed2b4ff2c0311181abb6f836bebce3.tar.gz
dexon-solidity-02416d4460ed2b4ff2c0311181abb6f836bebce3.tar.zst
dexon-solidity-02416d4460ed2b4ff2c0311181abb6f836bebce3.zip
add payable to AST
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/ast/ASTJsonConverter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/ast/ASTJsonConverter.cpp b/libsolidity/ast/ASTJsonConverter.cpp
index 0ea5e093..b573feda 100644
--- a/libsolidity/ast/ASTJsonConverter.cpp
+++ b/libsolidity/ast/ASTJsonConverter.cpp
@@ -174,7 +174,8 @@ bool ASTJsonConverter::visit(FunctionDefinition const& _node)
addJsonNode(_node, "FunctionDefinition", {
make_pair("name", _node.name()),
make_pair("public", _node.isPublic()),
- make_pair("constant", _node.isDeclaredConst())
+ make_pair("constant", _node.isDeclaredConst()),
+ make_pair("payable", _node.isPayable())
}, true);
return true;
}