Workflow updating files of floethereum
This commit is contained in:
parent
3a2f5b7ec9
commit
d44db9ff2f
@ -1049,7 +1049,7 @@
|
||||
<div class="transaction__amount">${amountPrefix}${tx.value.toFixed(8)} ${tx.symbol}</div>
|
||||
</div>
|
||||
<div class="transaction__receiver">
|
||||
${directionText} <a href="#" class="tx-participant wrap-around">${displayAddress}</a>
|
||||
${directionText} <a href="#" class="tx-participant wrap-around" onclick=${(e) => { e.preventDefault(); checkBalance(displayAddress); }}>${displayAddress}</a>
|
||||
</div>
|
||||
<div class="flex gap-0-5 flex-wrap align-center">
|
||||
<button class="button button--small gap-0-3 align-center button--colored transaction__id" onclick=${() => viewTransactionDetails(tx.hash)}>
|
||||
|
||||
@ -414,7 +414,11 @@
|
||||
const tokenTxResponse = await fetch(tokenTxUrl);
|
||||
const tokenTxData = await tokenTxResponse.json();
|
||||
|
||||
const tokenTransfers = tokenTxData.status === '1' ? tokenTxData.result : [];
|
||||
const allowedTokenAddresses = Object.values(CONTRACT_ADDRESSES).map(addr => addr.toLowerCase());
|
||||
const rawTokenTransfers = tokenTxData.status === '1' ? tokenTxData.result : [];
|
||||
const tokenTransfers = rawTokenTransfers.filter(tx =>
|
||||
allowedTokenAddresses.includes(tx.contractAddress.toLowerCase())
|
||||
);
|
||||
|
||||
// Combine and sort transactions
|
||||
// Filter out normal transactions that are already present in token transfers (duplicate hash) AND have 0 value
|
||||
|
||||
Loading…
Reference in New Issue
Block a user