mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Split fallback function and introduce "fallback()" and "receive()" syntax.
This commit is contained in:
@@ -1434,8 +1434,8 @@ Json::Value CompilerStack::gasEstimates(string const& _contractName) const
|
||||
Json::Value internalFunctions(Json::objectValue);
|
||||
for (auto const& it: contract.definedFunctions())
|
||||
{
|
||||
/// Exclude externally visible functions, constructor and the fallback function
|
||||
if (it->isPartOfExternalInterface() || it->isConstructor() || it->isFallback())
|
||||
/// Exclude externally visible functions, constructor, fallback and receive ether function
|
||||
if (it->isPartOfExternalInterface() || !it->isOrdinary())
|
||||
continue;
|
||||
|
||||
size_t entry = functionEntryPoint(_contractName, *it);
|
||||
|
||||
Reference in New Issue
Block a user