Skip to content

Commit 1d42061

Browse files
committed
jsre: hotfix web3 for the console eth.syncing formatting
1 parent b6135a7 commit 1d42061

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

jsre/ethereum_js.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3911,7 +3911,12 @@ var outputSyncingFormatter = function(result) {
39113911
result.startingBlock = utils.toDecimal(result.startingBlock);
39123912
result.currentBlock = utils.toDecimal(result.currentBlock);
39133913
result.highestBlock = utils.toDecimal(result.highestBlock);
3914-
3914+
if (result.knownStates !== undefined) {
3915+
result.knownStates = utils.toDecimal(result.knownStates);
3916+
}
3917+
if (result.pulledStates !== undefined) {
3918+
result.pulledStates = utils.toDecimal(result.pulledStates);
3919+
}
39153920
return result;
39163921
};
39173922

0 commit comments

Comments
 (0)