Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/hooks/useWallet.js
Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Lines | const update = async ({ wallet }) => { | ||||
BCH, | BCH, | ||||
utxos, | utxos, | ||||
); | ); | ||||
const slpBalancesAndUtxos = await getSlpBalancesAndUtxos( | const slpBalancesAndUtxos = await getSlpBalancesAndUtxos( | ||||
hydratedUtxoDetails, | hydratedUtxoDetails, | ||||
); | ); | ||||
const txHistory = await getTxHistory(BCH, cashAddresses); | const txHistory = await getTxHistory(BCH, cashAddresses); | ||||
const parsedTxHistory = await getTxData(BCH, txHistory); | const parsedTxHistory = await getTxData(BCH, txHistory); | ||||
const parsedWithTokens = await addTokenTxData(BCH, parsedTxHistory); | const parsedWithTokens = await addTokenTxData(BCH, parsedTxHistory); | ||||
console.log(`slpBalancesAndUtxos`, slpBalancesAndUtxos); | console.log(`slpBalancesAndUtxos`, slpBalancesAndUtxos); | ||||
if (typeof slpBalancesAndUtxos === 'undefined') { | if (typeof slpBalancesAndUtxos === 'undefined') { | ||||
console.log(`slpBalancesAndUtxos is undefined`); | console.log(`slpBalancesAndUtxos is undefined`); | ||||
throw new Error('slpBalancesAndUtxos is undefined'); | throw new Error('slpBalancesAndUtxos is undefined'); | ||||
▲ Show 20 Lines • Show All 891 Lines • Show Last 20 Lines |