Browse Source

Update RippleJSBridge.js

gre-patch-1
Juan Cortes Ross 6 years ago
parent
commit
49f2a27561
No known key found for this signature in database GPG Key ID: 34A99C03E9455EB8
  1. 12
      src/bridge/RippleJSBridge.js

12
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
}

Loading…
Cancel
Save