Workflow updating files of floethereum

This commit is contained in:
RanchiMall Dev 2026-01-31 20:29:02 +00:00
parent 3a2f5b7ec9
commit d44db9ff2f
2 changed files with 6 additions and 2 deletions

View File

@ -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)}>

View File

@ -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