diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-05-09 16:59:43 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-05-09 16:59:59 +0800 |
commit | 1d42061e2c8c1f657d56b606057df537e11abf8a (patch) | |
tree | 6884a688332c3bc2ea46a8233a893f9d2672ab98 | |
parent | b6135a72dd01deb9ac68ee5fbcc92b61565dc9e6 (diff) | |
download | dexon-1d42061e2c8c1f657d56b606057df537e11abf8a.tar.gz dexon-1d42061e2c8c1f657d56b606057df537e11abf8a.tar.zst dexon-1d42061e2c8c1f657d56b606057df537e11abf8a.zip |
jsre: hotfix web3 for the console eth.syncing formatting
-rw-r--r-- | jsre/ethereum_js.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/jsre/ethereum_js.go b/jsre/ethereum_js.go index dfdedeb11..79ce1d2e2 100644 --- a/jsre/ethereum_js.go +++ b/jsre/ethereum_js.go @@ -3911,7 +3911,12 @@ var outputSyncingFormatter = function(result) { result.startingBlock = utils.toDecimal(result.startingBlock); result.currentBlock = utils.toDecimal(result.currentBlock); result.highestBlock = utils.toDecimal(result.highestBlock); - + if (result.knownStates !== undefined) { + result.knownStates = utils.toDecimal(result.knownStates); + } + if (result.pulledStates !== undefined) { + result.pulledStates = utils.toDecimal(result.pulledStates); + } return result; }; |