Updated on 2026-08-14
This commit is contained in:
parent
1f0ed3a95e
commit
33cf25ac4c
1 changed files with 3 additions and 2 deletions
|
|
@ -20,9 +20,10 @@ internal object WalletStateCache {
|
|||
states[userWalletId] = state
|
||||
}
|
||||
|
||||
fun updateAll(func: (WalletState.ContentState.() -> WalletState.ContentState)) {
|
||||
/** Update all content states */
|
||||
fun updateAll(block: (WalletState.ContentState.() -> WalletState.ContentState)) {
|
||||
states.keys.forEach {
|
||||
states[it] = func(states[it]!!)
|
||||
states[it] = block(requireNotNull(states[it]))
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue