diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-17 02:51:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-17 02:51:09 +0800 |
commit | 4c6d476f7eb2e570c88d0881d49fcb066808ce0c (patch) | |
tree | 86e2927878c179ec9e218020c4936cb6e0073912 /libsolidity/ast/ASTPrinter.cpp | |
parent | 4449820be3b23cb074c8db77915a799b3ff31c49 (diff) | |
parent | 7700f4033ec9f1f14fc798ab4f030d850c6b9db3 (diff) | |
download | dexon-solidity-4c6d476f7eb2e570c88d0881d49fcb066808ce0c.tar.gz dexon-solidity-4c6d476f7eb2e570c88d0881d49fcb066808ce0c.tar.zst dexon-solidity-4c6d476f7eb2e570c88d0881d49fcb066808ce0c.zip |
Merge pull request #2754 from ethereum/isdeclaredconst
Use statemutability instead of isDeclaredConst
Diffstat (limited to 'libsolidity/ast/ASTPrinter.cpp')
-rw-r--r-- | libsolidity/ast/ASTPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/ast/ASTPrinter.cpp b/libsolidity/ast/ASTPrinter.cpp index 23eb3b64..bcb5e3b9 100644 --- a/libsolidity/ast/ASTPrinter.cpp +++ b/libsolidity/ast/ASTPrinter.cpp @@ -105,7 +105,7 @@ bool ASTPrinter::visit(FunctionDefinition const& _node) { writeLine("FunctionDefinition \"" + _node.name() + "\"" + (_node.isPublic() ? " - public" : "") + - (_node.isDeclaredConst() ? " - const" : "")); + (_node.stateMutability() == StateMutability::View ? " - const" : "")); printSourcePart(_node); return goDeeper(); } |