diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-09 07:58:12 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-09 07:58:12 +0800 |
commit | a36af5364c82f970fd9503833c04c1b5863e6697 (patch) | |
tree | 9bc4054ccce36b47929cf37b8f614f3bbf188ca4 /AST.cpp | |
parent | 9cf1c066fce4909e2ce2adebc713beef941508c6 (diff) | |
download | dexon-solidity-a36af5364c82f970fd9503833c04c1b5863e6697.tar dexon-solidity-a36af5364c82f970fd9503833c04c1b5863e6697.tar.gz dexon-solidity-a36af5364c82f970fd9503833c04c1b5863e6697.tar.bz2 dexon-solidity-a36af5364c82f970fd9503833c04c1b5863e6697.tar.lz dexon-solidity-a36af5364c82f970fd9503833c04c1b5863e6697.tar.xz dexon-solidity-a36af5364c82f970fd9503833c04c1b5863e6697.tar.zst dexon-solidity-a36af5364c82f970fd9503833c04c1b5863e6697.zip |
Fixing a solAssert in getInterfacefunctions()
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -60,8 +60,7 @@ map<FixedHash<4>, FunctionDefinition const*> ContractDefinition::getInterfaceFun { FixedHash<4> hash(dev::sha3(f->getCanonicalSignature())); auto res = exportedFunctions.insert(std::make_pair(hash,f.get())); - if (!res.second) - solAssert(false, "Hash collision at Function Definition Hash calculation"); + solAssert(res.second, "Hash collision at Function Definition Hash calculation"); } return exportedFunctions; |