Updated on 2026-08-14

This commit is contained in:
Tangem 2024-11-27 14:04:49 +05:00
parent 1a1cce4e70
commit 12146c8981
11 changed files with 51 additions and 12 deletions

View file

@ -2,11 +2,13 @@ package com.tangem.core.deeplink.global
import com.tangem.core.deeplink.DeepLink
class BuyCurrencyDeepLink(val onReceive: () -> Unit) : DeepLink {
class BuyCurrencyDeepLink(val onReceive: (txId: String) -> Unit) : DeepLink {
override val uri: String = "tangem://redirect?action=dismissBrowser"
override fun onReceive(params: Map<String, String>) {
onReceive()
onReceive(
params["txId"] ?: return,
)
}
}