mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-22 11:08:33 +00:00
fix result.startingBlock error
This commit is contained in:
parent
43aa320246
commit
fd131ade75
@ -274,9 +274,11 @@ var inputAddressFormatter = function (address) {
|
||||
|
||||
var outputSyncingFormatter = function(result) {
|
||||
|
||||
result.startingBlock = utils.toDecimal(result.startingBlock);
|
||||
result.currentBlock = utils.toDecimal(result.currentBlock);
|
||||
result.highestBlock = utils.toDecimal(result.highestBlock);
|
||||
if (utils.isObject(result)) {
|
||||
result.startingBlock = utils.toDecimal(result.startingBlock);
|
||||
result.currentBlock = utils.toDecimal(result.currentBlock);
|
||||
result.highestBlock = utils.toDecimal(result.highestBlock);
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user