diff options
author | yann300 <yann.levreau@gmail.com> | 2016-11-03 23:36:38 +0800 |
---|---|---|
committer | yann300 <yann.levreau@gmail.com> | 2016-11-03 23:36:38 +0800 |
commit | 02416d4460ed2b4ff2c0311181abb6f836bebce3 (patch) | |
tree | 26d251be4547d7da819c5c64c81efc032980a109 /libsolidity/ast | |
parent | 90a4acc3a52a3bff22dbb713c808fe9c27eae550 (diff) | |
download | dexon-solidity-02416d4460ed2b4ff2c0311181abb6f836bebce3.tar.gz dexon-solidity-02416d4460ed2b4ff2c0311181abb6f836bebce3.tar.zst dexon-solidity-02416d4460ed2b4ff2c0311181abb6f836bebce3.zip |
add payable to AST
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/ASTJsonConverter.cpp | 3 |
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; } |