| 166 | } |
| 167 | |
| 168 | std::map<util::FixedHash<4>, FunctionTypePointer> ContractDefinition::interfaceFunctions(bool _includeInheritedFunctions) const |
| 169 | { |
| 170 | auto exportedFunctionList = interfaceFunctionList(_includeInheritedFunctions); |
| 171 | |
| 172 | std::map<util::FixedHash<4>, FunctionTypePointer> exportedFunctions; |
| 173 | for (auto const& it: exportedFunctionList) |
| 174 | exportedFunctions.insert(it); |
| 175 | |
| 176 | solAssert( |
| 177 | exportedFunctionList.size() == exportedFunctions.size(), |
| 178 | "Hash collision at Function Definition Hash calculation" |
| 179 | ); |
| 180 | |
| 181 | return exportedFunctions; |
| 182 | } |
| 183 | |
| 184 | FunctionDefinition const* ContractDefinition::constructor() const |
| 185 | { |