Updated on 2026-08-14
This commit is contained in:
commit
8a4a4812ae
1 changed files with 3 additions and 8 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue