Skip to content

Commit

Permalink
refactor: ⚰️ remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
jojobyte committed Feb 24, 2024
1 parent dd42504 commit 9e5e3bd
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/helpers/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -988,7 +988,7 @@ export async function createTx(

let cachedAddrs = {}

console.log(DashTx, fromWallet)
// console.log(DashTx, fromWallet)

let dashTx = DashTx.create({
// @ts-ignore
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit 9e5e3bd

Please sign in to comment.