File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Adamant/Modules/Account/AccountViewController/AccountWallets Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 9
9
import CommonKit
10
10
import Parchment
11
11
12
- struct AccountWalletsState {
13
- var wallets : [ AccountWalletCellState ]
14
-
15
- static let `default` = Self ( wallets: [ ] )
12
+ struct AccountWalletsState : Sendable {
13
+ @Atomic var wallets : [ AccountWalletCellState ] = [ ]
16
14
}
17
15
18
16
struct AccountWalletCellState {
Original file line number Diff line number Diff line change @@ -12,13 +12,14 @@ import Foundation
12
12
13
13
@MainActor
14
14
final class AccountWalletsViewModel {
15
- var state : AccountWalletsState = . default
15
+ var state : AccountWalletsState
16
16
17
17
private let walletsStoreService : WalletStoreServiceProviderProtocol
18
18
private var subscriptions = Set < AnyCancellable > ( )
19
19
20
20
init ( walletsStoreService: WalletStoreServiceProviderProtocol ) {
21
21
self . walletsStoreService = walletsStoreService
22
+ state = AccountWalletsState ( )
22
23
setup ( )
23
24
}
24
25
}
You can’t perform that action at this time.
0 commit comments