Updated on 2026-08-14

This commit is contained in:
Tangem 2026-04-21 16:20:46 +04:00
parent f8268dbe6e
commit cc78c7dde5
2 changed files with 8 additions and 2 deletions

View file

@ -37,6 +37,8 @@ data class AccountId private constructor(
companion object {
const val PaymentAccountIdPrefix = "payment_"
private val sha256Digest: MessageDigest by lazy { MessageDigest.getInstance("SHA-256") }
private val hexRegex = Regex("^[a-fA-F0-9]{64}$")
@ -73,7 +75,7 @@ data class AccountId private constructor(
}
fun forPaymentAccount(userWalletId: UserWalletId): AccountId {
return AccountId(value = "payment_$userWalletId", userWalletId = userWalletId)
return AccountId(value = "$PaymentAccountIdPrefix$userWalletId", userWalletId = userWalletId)
}
}
}