Updated on 2026-08-14
This commit is contained in:
parent
a1e86cb6fc
commit
53ed62b84d
3 changed files with 28 additions and 3 deletions
17
app/src/main/java/com/tangem/tap/domain/extensions/Token.kt
Normal file
17
app/src/main/java/com/tangem/tap/domain/extensions/Token.kt
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package com.tangem.tap.domain.extensions
|
||||
|
||||
import com.tangem.blockchain.common.Token
|
||||
|
||||
/**
|
||||
[REDACTED_AUTHOR]
|
||||
*/
|
||||
|
||||
private val tokenCustomIconUrls = mutableMapOf<String, String>()
|
||||
|
||||
fun Token.getCustomIconUrl(): String? {
|
||||
return tokenCustomIconUrls[this.contractAddress]
|
||||
}
|
||||
|
||||
fun Token.setCustomIconUrl(url: String) {
|
||||
tokenCustomIconUrls[this.contractAddress] = url
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue