Updated on 2026-08-14

This commit is contained in:
Tangem 2021-02-10 16:03:55 +00:00
commit 9e80d58ed4

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())