Fixing a solAssert in getInterfacefunctions()

This commit is contained in:
Lefteris Karapetsas 2015-01-09 00:58:12 +01:00
parent 9cf1c066fc
commit a36af5364c

View File

@ -60,8 +60,7 @@ map<FixedHash<4>, FunctionDefinition const*> ContractDefinition::getInterfaceFun
{ {
FixedHash<4> hash(dev::sha3(f->getCanonicalSignature())); FixedHash<4> hash(dev::sha3(f->getCanonicalSignature()));
auto res = exportedFunctions.insert(std::make_pair(hash,f.get())); auto res = exportedFunctions.insert(std::make_pair(hash,f.get()));
if (!res.second) solAssert(res.second, "Hash collision at Function Definition Hash calculation");
solAssert(false, "Hash collision at Function Definition Hash calculation");
} }
return exportedFunctions; return exportedFunctions;