Updated on 2026-08-14

This commit is contained in:
Tangem 2023-03-01 19:10:57 +03:00
parent 9f46037b4c
commit b44da0a4c0
3 changed files with 3 additions and 5 deletions

View file

@ -61,7 +61,7 @@ object Versions {
// endregion Other libraries
// region Tangem
const val tangemBlockchainSdk = "develop-168"
const val tangemBlockchainSdk = "develop-172"
// const val tangemBlockchainSdk = "0.0.1" // Keep it! - used for local builds
const val tangemCardSdk = "develop-191"

View file

@ -99,7 +99,7 @@ internal class ConfigManagerImpl @Inject constructor() : ConfigManager {
),
infuraProjectId = configValues.infuraProjectId,
tronGridApiKey = configValues.tronGridApiKey,
saltPayAuthToken = configValues.saltPay.credentials.token,
saltPayAuthToken = configValues.saltPay.credentials.basicAuthToken,
nowNodeCredentials = NowNodeCredentials(configValues.nowNodesApiKey),
getBlockCredentials = GetBlockCredentials(configValues.getBlockApiKey),
),

View file

@ -1,7 +1,5 @@
package com.tangem.datasource.config.models
import org.spongycastle.util.encoders.Base64.toBase64String
/**
[REDACTED_AUTHOR]
*/
@ -34,5 +32,5 @@ data class Credentials(
val user: String,
val password: String,
) {
val token: String by lazy { "Basic ${toBase64String("$user:$password".toByteArray())}" }
val basicAuthToken: String by lazy { okhttp3.Credentials.basic(user, password) }
}