Skip to content

Commit

Permalink
Merge pull request #3422 from Emurgo/fix/YOEXT-546/connector-sees-wro…
Browse files Browse the repository at this point in the history
…ng-utxos

[hotfix/5.1.400] connector wallet syncing utxo
  • Loading branch information
vsubhuman committed Apr 4, 2024
2 parents 28d01eb + f8a2da4 commit 4f15f3e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 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
4 changes: 2 additions & 2 deletions packages/yoroi-extension/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/yoroi-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yoroi",
"version": "5.1.300",
"version": "5.1.400",
"description": "Cardano ADA wallet",
"scripts": {
"dev-mv2": "rimraf dev/ && NODE_OPTIONS=--openssl-legacy-provider babel-node scripts-mv2/build --type=debug --env 'mainnet'",
Expand Down

0 comments on commit 4f15f3e

Please sign in to comment.