Bug fixes
This commit is contained in:
parent
8334337b75
commit
d22c6b03e2
16
index.html
16
index.html
@ -412,12 +412,12 @@
|
||||
case 'tokenswap':
|
||||
renderElem(
|
||||
document.getElementById('participant_container'),
|
||||
html`${
|
||||
Object.keys(contractParticipants)
|
||||
html`${Object.keys(contractParticipants)
|
||||
.map(participant => render.participantCard({
|
||||
accepting_token: contractInfo.accepting_token,
|
||||
selling_token: contractInfo.selling_token,
|
||||
...contractParticipants[participant]}
|
||||
...contractParticipants[participant]
|
||||
}
|
||||
))
|
||||
}`
|
||||
)
|
||||
@ -722,14 +722,20 @@
|
||||
<h5 class="label">Sender</h5>
|
||||
<a href=${`#/address/${sender}`} class="address wrap-around">${sender}</a>
|
||||
</div>
|
||||
${receiver ? html`
|
||||
<div class="flex flex-direction-column">
|
||||
<h5 class="label">Receiver</h5>
|
||||
<a href=${`#/address/${receiver}`} class="address wrap-around">${receiver}</a>
|
||||
</div>
|
||||
`: ''
|
||||
}
|
||||
${amount ? html`
|
||||
<div class="flex flex-direction-column">
|
||||
<h5 class="label">Amount</h5>
|
||||
<h4>${formatAmount(amount, 'usd')}</h4>
|
||||
</div>
|
||||
`: ''
|
||||
}
|
||||
</div>
|
||||
<div class="card">
|
||||
<h5 class="label">FLO Data</h5>
|
||||
@ -1532,8 +1538,8 @@
|
||||
let transactionHash = transaction.transactionHash,
|
||||
{ flodata, tokenAmount, tokenIdentification, type, nftHash } = transaction.parsedFloData,
|
||||
{ blockheight, vin, vout, confirmations } = transaction.transactionDetails;
|
||||
let receiver = "",
|
||||
sender = vin[0].addr;
|
||||
let sender = vin[0].addr;
|
||||
let receiver = sender
|
||||
for (let i = 0; i < vout.length; i++) {
|
||||
if (vout[i]["scriptPubKey"]["addresses"][0] !== vin[0]["addr"]) {
|
||||
receiver = vout[i]["scriptPubKey"]["addresses"][0];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user