From 2f824b609bf51e78dc9a8a8533549cbafa869f1e Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sun, 16 Apr 2023 01:21:37 +0530 Subject: [PATCH] Bug fixes --- index.html | 40 +++++++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index f9f29df..0954acd 100644 --- a/index.html +++ b/index.html @@ -822,7 +822,8 @@ contractType, contractSubtype, contractAddress, - expiration, token, + expiration, + token, participationFees, userChoices, payeeAddress, @@ -845,14 +846,6 @@
${status}
`: ''}

${replaceDash(contract)}

- ${userChoices ? html` -

Available Choices

- - `: ''}
Contract Type
@@ -871,7 +864,7 @@ ${expiration ? html`
Expiration
-

${expiration}

+

${getFormattedTime(new Date(expiration).getTime())}

` : ''} ${payeeAddress ? html` @@ -951,7 +944,15 @@
`: ''}
- + ${userChoices ? html` +

Available Choices

+ + `: ''} + Transactions Participants ${contractType === 'one-time-event' && contractSubtype === 'external-trigger' ? html`Winners` : ''} @@ -1185,6 +1186,7 @@ }, contractCreationCard(obj) { const { hash, blockHeight, token, contractName, incAddress, contractType, expiration, participationFees, availableChoices, time } = obj; + console.log(obj); return html`
contract creation @@ -1212,7 +1214,7 @@
expiration
-

${expiration}

+

${getFormattedTime(new Date(expiration).getTime())}

participation amount
@@ -1451,11 +1453,23 @@ // if(transactionKey == '11571ce7e5eed0bce30e24de89bb1ba6cc432df7b5b40bbc9f0225b98968cb47'){ // //debugger // } + console.log(tx) const { transactionDetails: { txid, blockHeight, vin, vout, time }, parsedFloData: { - contractAddress, contractType, expiryTime, contractAmount, type, tokenAmount, tokenIdentification, transferType, contractName, triggerCondition, userChoice, nftHash + contractAddress, + contractType, + contractConditions: { expiryTime } = {}, + contractAmount, + type, + tokenAmount, + tokenIdentification, + transferType, + contractName, + triggerCondition, + userChoice, + nftHash } } = tx; let obj = {