Update index.js
This commit is contained in:
parent
2c3997d245
commit
015dbb650d
@ -267,11 +267,6 @@ AddressService.prototype.__getAddressSummary = function(address, options, callba
|
||||
var txs = results.items;
|
||||
self._getAddressSummaryResult(txs, address, result, options);
|
||||
|
||||
result.balanceSat = parseInt(result.balanceSat.toFixed());
|
||||
result.totalReceivedSat = parseInt(result.totalReceivedSat.toFixed());;
|
||||
result.totalSentSat = parseInt(result.totalSentSat.toFixed());;
|
||||
result.txApperances = parseInt(result.txApperances.toFixed());;
|
||||
|
||||
result.balance = Unit.fromSatoshis(result.balanceSat).toBTC();
|
||||
result.totalReceived = Unit.fromSatoshis(result.totalReceivedSat).toBTC();
|
||||
result.totalSent = Unit.fromSatoshis(result.totalSentSat).toBTC();
|
||||
@ -329,6 +324,11 @@ AddressService.prototype.getAddressSummary = function(address, options, streamer
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
result.balanceSat = parseInt(result.balanceSat.toFixed());
|
||||
result.totalReceivedSat = parseInt(result.totalReceivedSat.toFixed());
|
||||
result.totalSentSat = parseInt(result.totalSentSat.toFixed());
|
||||
result.txApperances = parseInt(result.txApperances.toFixed());
|
||||
|
||||
result.balance = Unit.fromSatoshis(result.balanceSat).toBTC();
|
||||
result.totalReceived = Unit.fromSatoshis(result.totalReceivedSat).toBTC();
|
||||
result.totalSent = Unit.fromSatoshis(result.totalSentSat).toBTC();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user