Updated on 2026-08-14

This commit is contained in:
Tangem 2023-10-10 11:23:03 +03:00
parent 1f0ed3a95e
commit 33cf25ac4c

View file

@ -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]))
}
}
}