diff options
author | chriseth <c@ethdev.com> | 2015-06-26 22:52:30 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-26 22:55:42 +0800 |
commit | 342ca948661a3f2088b3025b5f15c97d3a53f86e (patch) | |
tree | 57a5c39bc60253dc82facfd7af664d9a8fe4d5fd /AST.cpp | |
parent | 2e5c52bfabdc7ac221bf4617ed98d9a9abef85b8 (diff) | |
download | dexon-solidity-342ca948661a3f2088b3025b5f15c97d3a53f86e.tar dexon-solidity-342ca948661a3f2088b3025b5f15c97d3a53f86e.tar.gz dexon-solidity-342ca948661a3f2088b3025b5f15c97d3a53f86e.tar.bz2 dexon-solidity-342ca948661a3f2088b3025b5f15c97d3a53f86e.tar.lz dexon-solidity-342ca948661a3f2088b3025b5f15c97d3a53f86e.tar.xz dexon-solidity-342ca948661a3f2088b3025b5f15c97d3a53f86e.tar.zst dexon-solidity-342ca948661a3f2088b3025b5f15c97d3a53f86e.zip |
Fixed and simplified external type computation.
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -340,8 +340,10 @@ vector<pair<FixedHash<4>, FunctionTypePointer>> const& ContractDefinition::getIn { for (ASTPointer<FunctionDefinition> const& f: contract->getDefinedFunctions()) { + if (!f->isPartOfExternalInterface()) + continue; string functionSignature = f->externalSignature(); - if (f->isPartOfExternalInterface() && signaturesSeen.count(functionSignature) == 0) + if (signaturesSeen.count(functionSignature) == 0) { functionsSeen.insert(f->getName()); signaturesSeen.insert(functionSignature); |