Keep gas values as a string in CompilerStack::gasEstimate

This commit is contained in:
Alex Beregszaszi
2017-04-13 02:18:29 +01:00
parent fe4fccaaf2
commit 54dcb0e11b
3 changed files with 33 additions and 27 deletions
+3 -3
View File
@@ -848,10 +848,10 @@ namespace
Json::Value gasToJson(GasEstimator::GasConsumption const& _gas)
{
if (_gas.isInfinite || _gas.value > std::numeric_limits<Json::LargestUInt>::max())
return Json::Value(Json::nullValue);
if (_gas.isInfinite)
return Json::Value("infinite");
else
return Json::Value(Json::LargestUInt(_gas.value));
return Json::Value(toString(_gas.value));
}
}