Updated on 2026-08-14

This commit is contained in:
Tangem 2025-12-03 14:25:18 +03:00
parent ccb8c774ed
commit 57d3a102ab
4 changed files with 28 additions and 10 deletions

View file

@ -64,10 +64,13 @@ interface WalletsRepository {
suspend fun dismissUpgradeWalletNotification(userWalletId: UserWalletId)
@Throws
suspend fun setWalletName(walletId: String, walletName: String)
suspend fun setWalletName(walletId: UserWalletId, walletName: String)
@Throws
suspend fun getWalletInfo(walletId: String): UserWalletRemoteInfo
suspend fun upgradeWallet(walletId: UserWalletId)
@Throws
suspend fun getWalletInfo(walletId: UserWalletId): UserWalletRemoteInfo
@Throws
suspend fun getWalletsInfo(applicationId: String, updateCache: Boolean = true): List<UserWalletRemoteInfo>

View file

@ -16,7 +16,7 @@ class RenameWalletUseCase(
suspend operator fun invoke(userWalletId: UserWalletId, name: String): Either<UpdateWalletError, UserWallet> =
either {
runCatching {
walletsRepository.setWalletName(userWalletId.stringValue, name)
walletsRepository.setWalletName(userWalletId, name)
}
userWalletsSyncDelegate.syncWallet(userWalletId, name).bind()