mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disallow externalSignature for fallback functions
This commit is contained in:
parent
9fc6eccc26
commit
d4e44ecb46
@ -2524,6 +2524,7 @@ bool FunctionType::isBareCall() const
|
|||||||
string FunctionType::externalSignature() const
|
string FunctionType::externalSignature() const
|
||||||
{
|
{
|
||||||
solAssert(m_declaration != nullptr, "External signature of function needs declaration");
|
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();
|
bool _inLibrary = dynamic_cast<ContractDefinition const&>(*m_declaration->scope()).isLibrary();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user