From 78119678ec87a31cafcfd8bad4b1544dea330131 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sat, 11 Mar 2023 20:34:59 +0530 Subject: [PATCH] Added FLO data and multisig address to chat UI --- index.html | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index b02e7ff..83bd5b8 100644 --- a/index.html +++ b/index.html @@ -2664,6 +2664,9 @@

` break; case 'BROADCAST': + if ($('#transaction_details')) + $('#transaction_details').remove() + getRef('chat_footer').classList.remove('hidden') let redirectTo = `https://live.blockcypher.com/btc/tx/` if (messenger.pipeline[activeChat.address].model === 'flo_multisig') redirectTo = `https://flosight.ranchimall.net/tx/` @@ -2672,9 +2675,6 @@

Transaction approved

View on blockchain ` - if ($('#transaction_details')) - $('#transaction_details').remove() - getRef('chat_footer').classList.remove('hidden') break; } } @@ -3893,7 +3893,7 @@ details = await btcOperator.parseTransaction(floGlobals.pipelineTxHex) break; } - const { inputs, outputs, fee } = details + const { inputs, outputs, fee, floData } = details const { s: signsDone, r: minSignsRequired, t: totalMembers } = inputs[0]?.signed || {} const pendingSigns = minSignsRequired - signsDone if (minSignsRequired) { @@ -3904,11 +3904,15 @@

Transaction is waiting for ${pendingSigns} more signature${pendingSigns > 1 ? 's' : ''}

+
+
Multisig address
+ +
Receiver
-
+
Amount

${outputs[0].value} ${currency}

@@ -3918,6 +3922,12 @@

${fee} ${currency}

+ ${floData ? html` +
+
FLO data
+

${floData}

+
`: '' + } `) }