diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-28 03:55:55 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-28 04:52:57 +0800 |
commit | 9fc6eccc26eea6f5a70f2960df9d53d49392151e (patch) | |
tree | 8dd67fc01a6abaecffbac1d100fe550c8e088616 /libsolidity/ast/AST.cpp | |
parent | 53f747b7ded3610802582448257b25e87442bebb (diff) | |
download | dexon-solidity-9fc6eccc26eea6f5a70f2960df9d53d49392151e.tar.gz dexon-solidity-9fc6eccc26eea6f5a70f2960df9d53d49392151e.tar.zst dexon-solidity-9fc6eccc26eea6f5a70f2960df9d53d49392151e.zip |
Add isFallback() helper
Diffstat (limited to 'libsolidity/ast/AST.cpp')
-rw-r--r-- | libsolidity/ast/AST.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/ast/AST.cpp b/libsolidity/ast/AST.cpp index ebc8bd48..1d68231e 100644 --- a/libsolidity/ast/AST.cpp +++ b/libsolidity/ast/AST.cpp @@ -162,7 +162,7 @@ FunctionDefinition const* ContractDefinition::fallbackFunction() const { for (ContractDefinition const* contract: annotation().linearizedBaseContracts) for (FunctionDefinition const* f: contract->definedFunctions()) - if (f->name().empty()) + if (f->isFallback()) return f; return nullptr; } |