Updated on 2026-08-14

This commit is contained in:
Tangem 2026-05-04 14:46:26 +04:00
parent 3d5a8654a5
commit 67ca192c16
19 changed files with 90 additions and 52 deletions

View file

@ -227,7 +227,10 @@ internal class CreateWalletStartModel @Inject constructor(
is SaveWalletError.WalletAlreadySaved -> {
userWalletsListRepository.unlock(
userWalletId = userWallet.walletId,
unlockMethod = UserWalletsListRepository.UnlockMethod.Scan(scanResponse),
unlockMethod = UserWalletsListRepository.UnlockMethod.Scan(
scanResponse = scanResponse,
source = AnalyticsParam.ScreensSources.Intro,
),
).onRight {
appRouter.replaceAll(AppRoute.Wallet)
}

View file

@ -421,7 +421,10 @@ internal class CreateWalletStartModelTest {
coVerify {
userWalletsListRepository.unlock(
userWalletId = testUserWalletId,
unlockMethod = UserWalletsListRepository.UnlockMethod.Scan(testScanResponse),
unlockMethod = UserWalletsListRepository.UnlockMethod.Scan(
scanResponse = testScanResponse,
source = AnalyticsParam.ScreensSources.Intro,
),
)
}
verify { appRouter.replaceAll(routes = arrayOf(AppRoute.Wallet), onComplete = any()) }