Updated on 2026-08-14

This commit is contained in:
Tangem 2021-02-10 16:57:02 +03:00
parent a07da07f47
commit 508b51d795

View file

@ -24,8 +24,9 @@ class TransactionExtrasReducer : SendInternalReducer {
val emptyResult = TransactionExtrasState()
val result = when (action.blockchain) {
Blockchain.XRP -> {
val address = action.walletAddress.substringAfter(":")
// 'r' - without tag, 'x' - with tag
if (action.walletAddress.startsWith("r", true)) {
if (address.startsWith("r", true)) {
val tag = action.xrpTag?.toLongOrNull()
if (tag == null) {
TransactionExtrasState(xrpDestinationTag = XrpDestinationTagState())