This commit is contained in:
sairaj mote 2023-04-16 18:49:05 +05:30
parent c63d3dc77c
commit c65b0a92e9

View File

@ -1230,10 +1230,11 @@
<h5 class="label">contract type</h5> <h5 class="label">contract type</h5>
<h4>${replaceDash(contractType)}</h4> <h4>${replaceDash(contractType)}</h4>
</div> </div>
<div class="flex flex-direction-column"> ${expiration ? html`
<h5 class="label">expiration</h5> <div class="flex flex-direction-column">
<h4 class="capitalise">${getFormattedTime(new Date(expiration).getTime())}</h4> <h5 class="label">expiration</h5>
</div> <h4 class="capitalise">${getFormattedTime(new Date(expiration).getTime())}</h4>
</div>`: ''}
<div class="flex flex-direction-column"> <div class="flex flex-direction-column">
<h5 class="label">participation amount</h5> <h5 class="label">participation amount</h5>
<h4>${participationFees} ${token}</h4> <h4>${participationFees} ${token}</h4>
@ -1271,7 +1272,6 @@
async function renderTransactions(container, transactions = []) { async function renderTransactions(container, transactions = []) {
let txFrag = parseTransactions(transactions); let txFrag = parseTransactions(transactions);
console.log(txFrag)
const renderedTransactions = txFrag.map(tx => { const renderedTransactions = txFrag.map(tx => {
switch (tx.type) { switch (tx.type) {
case 'tokentransfer': case 'tokentransfer':