mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Explicitly specify insertion to exported functions
This commit is contained in:
parent
c6fcb8555f
commit
1b25f85a66
2
AST.cpp
2
AST.cpp
@ -83,7 +83,7 @@ map<FixedHash<4>, FunctionDescription> ContractDefinition::getInterfaceFunctions
|
||||
|
||||
map<FixedHash<4>, FunctionDescription> exportedFunctions;
|
||||
for (auto const& it: exportedFunctionList)
|
||||
exportedFunctions[std::get<0>(it)] = std::move(FunctionDescription(std::get<1>(it), std::get<2>(it)));
|
||||
exportedFunctions.insert(make_pair(std::get<0>(it), FunctionDescription(std::get<1>(it), std::get<2>(it))));
|
||||
|
||||
solAssert(exportedFunctionList.size() == exportedFunctions.size(),
|
||||
"Hash collision at Function Definition Hash calculation");
|
||||
|
Loading…
Reference in New Issue
Block a user