mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
The gasEstimates objects must always be present in the jsonCompiler even if empty (backwards compat)
This commit is contained in:
parent
3fbb48bd46
commit
fe4fccaaf2
@ -70,8 +70,10 @@ Json::Value estimateGas(CompilerStack const& _compiler, string const& _contract)
|
||||
creation[1] = estimates["creation"]["codeDepositCost"];
|
||||
output["creation"] = creation;
|
||||
}
|
||||
output["external"] = estimates["external"];
|
||||
output["internal"] = estimates["internal"];
|
||||
else
|
||||
output["creation"] = Json::objectValue;
|
||||
output["external"] = estimates.get("external", Json::objectValue);
|
||||
output["internal"] = estimates.get("internal", Json::objectValue);
|
||||
|
||||
return output;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user