From 49f2a27561b99e93f9499d4fa3e4f48b69b79f81 Mon Sep 17 00:00:00 2001 From: Juan Cortes Ross Date: Tue, 11 Dec 2018 17:16:18 +0100 Subject: [PATCH] Update RippleJSBridge.js --- src/bridge/RippleJSBridge.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/bridge/RippleJSBridge.js b/src/bridge/RippleJSBridge.js index 9dfd34c5..31c9c356 100644 --- a/src/bridge/RippleJSBridge.js +++ b/src/bridge/RippleJSBridge.js @@ -121,7 +121,11 @@ async function signAndBroadcast({ a, t, deviceId, isCancelled, onSigned, onOpera transactionSequenceNumber: (a.operations.length > 0 ? a.operations[0].transactionSequenceNumber : 0) + a.pendingOperations.length, - extra: { tag: t.tag }, + extra: {}, + } + + if (t.tag) { + op.extra.tag = t.tag } onOperationBroadcasted(op) } @@ -234,7 +238,11 @@ const txToOperation = (account: Account) => ({ recipients: [destination.address], date: new Date(timestamp), transactionSequenceNumber: sequence, - extra: { tag: destination.tag }, + extra: {}, + } + + if (destination.tag) { + op.extra.tag = destination.tag } return op }