diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-12 19:06:01 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-13 09:18:29 +0800 |
commit | 54dcb0e11be09caf35e02792d47695685ba1f4cb (patch) | |
tree | 3e027108539be90a11e65b5b560506bd97e8216a /libsolidity/interface/CompilerStack.cpp | |
parent | fe4fccaaf21dbb7cbfed9b758a3d8f12f979c6dc (diff) | |
download | dexon-solidity-54dcb0e11be09caf35e02792d47695685ba1f4cb.tar.gz dexon-solidity-54dcb0e11be09caf35e02792d47695685ba1f4cb.tar.zst dexon-solidity-54dcb0e11be09caf35e02792d47695685ba1f4cb.zip |
Keep gas values as a string in CompilerStack::gasEstimate
Diffstat (limited to 'libsolidity/interface/CompilerStack.cpp')
-rw-r--r-- | libsolidity/interface/CompilerStack.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp index ea648709..92b49cda 100644 --- a/libsolidity/interface/CompilerStack.cpp +++ b/libsolidity/interface/CompilerStack.cpp @@ -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)); } } |