Skip to content

Commit

Permalink
connector wallet syncing should update utxos instead of transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
yushih authored and vsubhuman committed Apr 4, 2024
1 parent 28d01eb commit 318798b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/yoroi-extension/chrome/extension/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ import {
MAX_COLLATERAL,
connectorGetDRepKey, connectorGetStakeKey,
} from './connector/api';
import {
updateTransactions as cardanoUpdateTransactions
} from '../../app/api/ada/lib/storage/bridge/updateTransactions';
import { updateUtxos } from '../../app/api/ada/lib/storage/bridge/updateTransactions';
import { environment } from '../../app/environment';
import type { IFetcher as CardanoIFetcher } from '../../app/api/ada/lib/state-fetch/IFetcher';
import { RemoteFetcher as CardanoRemoteFetcher } from '../../app/api/ada/lib/state-fetch/remoteFetcher';
Expand Down Expand Up @@ -362,14 +360,10 @@ async function syncWallet(
if (isCardano) {
const stateFetcher: CardanoIFetcher =
await getCardanoStateFetcher(localStorageApi);
await cardanoUpdateTransactions(
await updateUtxos(
wallet.getDb(),
wallet,
stateFetcher.checkAddressesInUse,
stateFetcher.getTransactionsHistoryForAddresses,
stateFetcher.getRecentTransactionHashes,
stateFetcher.getTransactionsByHashes,
stateFetcher.getBestBlock,
stateFetcher.getTokenInfo,
stateFetcher.getMultiAssetMintMetadata,
stateFetcher.getMultiAssetSupply,
Expand Down

0 comments on commit 318798b

Please sign in to comment.