Updated on 2026-08-14
This commit is contained in:
parent
ccb8c774ed
commit
57d3a102ab
4 changed files with 28 additions and 10 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue