aboutsummaryrefslogtreecommitdiffstats
path: root/jsonCompiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'jsonCompiler.cpp')
-rw-r--r--jsonCompiler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/jsonCompiler.cpp b/jsonCompiler.cpp
index 7bde3e47..340713b1 100644
--- a/jsonCompiler.cpp
+++ b/jsonCompiler.cpp
@@ -91,6 +91,8 @@ Json::Value estimateGas(CompilerStack const& _compiler, string const& _contract)
string sig = it.second->externalSignature();
externalFunctions[sig] = gasToJson(GasEstimator::functionalEstimation(*items, sig));
}
+ if (contract.getFallbackFunction())
+ externalFunctions[""] = gasToJson(GasEstimator::functionalEstimation(*items, "INVALID"));
gasEstimates["external"] = externalFunctions;
Json::Value internalFunctions(Json::objectValue);
for (auto const& it: contract.getDefinedFunctions())