Updated on 2026-08-14

This commit is contained in:
Tangem 2025-05-21 15:00:49 +03:00
parent e9801d4e47
commit 669fd6dd32
4 changed files with 4 additions and 4 deletions

View file

@ -363,7 +363,7 @@ class VisaCardActivationTask @AssistedInject constructor(
signature = response.signature,
hash = dataToSign.hashToSign.hexToBytes(),
publicKey = derivedPublicKey.publicKey.toDecompressedPublicKey(),
).asRSVLegacyEVM().toHexString()
).asRSVLegacyEVM().toHexString().lowercase()
val signedActivationData = dataToSign.sign(
rootOTP = otp.rootOTP.toHexString(),

View file

@ -181,7 +181,7 @@ class VisaCustomerWalletApproveTask(
hash = hashToSign,
publicKey = extendedPublicKey?.publicKey?.toDecompressedPublicKey()
?: targetWalletPublicKey.toDecompressedPublicKey(),
).asRSVLegacyEVM().toHexString()
).asRSVLegacyEVM().toHexString().lowercase()
scanCard(
session = session,

View file

@ -393,7 +393,7 @@ class WalletConnectSdkHelper {
signature = signedHash,
hash = hashToSign,
publicKey = wallet.publicKey.blockchainKey.toDecompressedPublicKey(),
).asRSVLegacyEVM().toHexString()
).asRSVLegacyEVM().toHexString().lowercase() // use lowercase because some dapps cant handle UPPERCASE
}
}
is CompletionResult.Failure -> {