Skip to content

Commit

Permalink
fix: get btc utxos api
Browse files Browse the repository at this point in the history
  • Loading branch information
AricRedemption committed May 17, 2024
1 parent 26e3196 commit 8c8221c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,8 @@ export async function getBalance(chain: UtxoChain) {
}

export async function getUtxos(chain: Chain = 'mvc', params?: { path?: string }) {
const activeWallet = await getActiveWalletOnlyAccount()
if (!activeWallet || !!activeWallet.accounts.length) {
return null
}
const address = await getAddress(chain, params?.path)
const wallet = await getCurrentWallet(chain as UtxoChain)
const address = wallet.getAddress()
return await fetchUtxos(chain, address)
}

Expand Down

0 comments on commit 8c8221c

Please sign in to comment.