Disallow externalSignature for fallback functions

This commit is contained in:
Alex Beregszaszi 2017-07-27 20:56:29 +01:00
parent 9fc6eccc26
commit d4e44ecb46

View File

@ -2524,6 +2524,7 @@ bool FunctionType::isBareCall() const
string FunctionType::externalSignature() const
{
solAssert(m_declaration != nullptr, "External signature of function needs declaration");
solAssert(!m_declaration->name().empty(), "Fallback function has no signature.");
bool _inLibrary = dynamic_cast<ContractDefinition const&>(*m_declaration->scope()).isLibrary();