Updated on 2026-08-14

This commit is contained in:
Tangem 2025-04-15 17:20:33 +03:00
parent a6da708704
commit c40b743a4f
2 changed files with 4 additions and 9 deletions

View file

@ -1,5 +1,6 @@
package com.tangem.tap.domain.walletconnect2.domain
import com.tangem.blockchain.blockchains.solana.SolanaTransactionHelper
import com.tangem.domain.walletconnect.model.legacy.WalletConnectSessionsRepository
import com.tangem.tap.domain.walletconnect.WalletConnectSdkHelper
import com.tangem.tap.domain.walletconnect2.domain.models.BnbData
@ -150,10 +151,8 @@ internal class WcSessionRequestConverter(
* Input transaction in Base64 string
*/
private fun String.prepareSolanaTransaction(): ByteArray {
return this.decodeBase64()
?.toByteArray()
?.drop(SOLANA_SIGNATURE_PLACEHOLDER_LENGTH)
?.toByteArray() ?: ByteArray(0)
val transaction = this.decodeBase64()?.toByteArray() ?: ByteArray(0)
return SolanaTransactionHelper.removeSignaturesPlaceholders(transaction)
}
private fun getWalletAddress(request: WcRequest): String? {
@ -182,8 +181,4 @@ internal class WcSessionRequestConverter(
(walletAddress == null || it.walletAddress.lowercase() == walletAddress.lowercase())
}?.derivationPath
}
companion object {
private const val SOLANA_SIGNATURE_PLACEHOLDER_LENGTH = 65
}
}

View file

@ -5,7 +5,7 @@
# https://github.com/tangem/tangem-sdk-android/
# https://github.com/tangem/vico
tangemBlockchainSdk = "releases-5.23-1026"
tangemBlockchainSdk = "releases-5.23-1032"
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
tangemCardSdk = "releases-5.23-456"
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^