From 9e5e3bdb1766ae7af6b09ee749cb39aaf82fc4a2 Mon Sep 17 00:00:00 2001 From: jojobyte <184880+jojobyte@users.noreply.github.com> Date: Fri, 23 Feb 2024 21:57:37 -0700 Subject: [PATCH] refactor: :coffin: remove dead code --- src/helpers/wallet.js | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/src/helpers/wallet.js b/src/helpers/wallet.js index b21235f..9fcd132 100644 --- a/src/helpers/wallet.js +++ b/src/helpers/wallet.js @@ -903,7 +903,7 @@ export function sortAddrs(a, b) { // Ascending Vout (Numerical) let indexDiff = a.addressIndex - b.addressIndex; return indexDiff; -}; +} export function getBalance(utxos) { return utxos.reduce(function (total, utxo) { @@ -988,7 +988,7 @@ export async function createTx( let cachedAddrs = {} - console.log(DashTx, fromWallet) + // console.log(DashTx, fromWallet) let dashTx = DashTx.create({ // @ts-ignore @@ -1054,23 +1054,13 @@ export async function createTx( } } - console.log('fundAddrs', {fundAddrs, cachedAddrs}) + // console.log('fundAddrs', {fundAddrs, cachedAddrs}) // @ts-ignore let dashwallet = await DashWallet.create({ safe: { cache: { addresses: cachedAddrs - // { - // 'Xaddr': { - // checked_at: 0, - // hdpath: `m/44'/${COIN_TYPE}'/${account}'/${usage}`, - // index: index, - // txs: [], - // utxos: [], - // wallet: wallet, - // }, - // }, } }, store: {