From d4e44ecb46df58ff21690c28098d20e3c5dfe307 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 27 Jul 2017 20:56:29 +0100 Subject: Disallow externalSignature for fallback functions --- libsolidity/ast/Types.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index 84e4a077..3f8da501 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -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(*m_declaration->scope()).isLibrary(); -- cgit