mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixing a solAssert in getInterfacefunctions()
This commit is contained in:
parent
9cf1c066fc
commit
a36af5364c
3
AST.cpp
3
AST.cpp
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user