mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Exclude fallback function from the internal functions in estimateGas
This commit is contained in:
parent
328f2b0a8e
commit
3fbb48bd46
@ -903,7 +903,8 @@ Json::Value CompilerStack::gasEstimates(string const& _contractName) const
|
||||
Json::Value internalFunctions(Json::objectValue);
|
||||
for (auto const& it: contract.definedFunctions())
|
||||
{
|
||||
if (it->isPartOfExternalInterface() || it->isConstructor())
|
||||
/// Exclude externally visible functions, constructor and the fallback function
|
||||
if (it->isPartOfExternalInterface() || it->isConstructor() || it->name().empty())
|
||||
continue;
|
||||
|
||||
size_t entry = functionEntryPoint(_contractName, *it);
|
||||
|
Loading…
Reference in New Issue
Block a user