diff --git a/scripts/wallet.js b/scripts/wallet.js index 0eaad20e..1417ee3f 100644 --- a/scripts/wallet.js +++ b/scripts/wallet.js @@ -684,9 +684,9 @@ export class Wallet { /** * Convert a list of Blockbook transactions to HistoricalTxs * @param {import('./transaction.js').Transaction} tx - A Transaction - * @returns {Promise} - The corresponding `HistoricalTx`- formatted transactions + * @returns {Promise} - The corresponding `HistoricalTx`- formatted transaction */ - async #toHistoricalTXs(tx) { + async #toHistoricalTX(tx) { const { credit, ownAllVout } = this.#mempool.getCredit(tx); const { debit, ownAllVin } = this.#mempool.getDebit(tx); // The total 'delta' or change in balance, from the Tx's sums @@ -779,7 +779,7 @@ export class Wallet { * @param {Transaction} tx */ async #pushToHistoricalTx(tx) { - const hTx = await this.#toHistoricalTXs(tx); + const hTx = await this.#toHistoricalTX(tx); this.#historicalTxs.insert(hTx); }