@@ -16,7 +16,13 @@ import { InfoBox, InfoBoxStyle, InfoBoxType, Select, SelectSize } from '@iota/ap
1616import { generateTransactionsTableColumns } from '~/lib/ui' ;
1717import { Warning } from '@iota/apps-ui-icons' ;
1818import { PAGE_SIZES_RANGE_20_60 } from '~/lib/constants' ;
19- import { type IotaTransactionKind } from '@iota/iota-sdk/client' ;
19+ import { type IotaTransactionBlockResponse , type IotaTransactionKind } from '@iota/iota-sdk/client' ;
20+ import { EVM_ANCHOR_ADDRESSES } from '~/lib/constants/evm.constants' ;
21+
22+ function isEvmTransaction ( tx : IotaTransactionBlockResponse ) : boolean {
23+ const sender = tx . transaction ?. data . sender ;
24+ return ! ! sender && EVM_ANCHOR_ADDRESSES . includes ( sender ) ;
25+ }
2026
2127interface TransactionsActivityTableProps {
2228 disablePagination ?: boolean ;
@@ -50,6 +56,11 @@ export function TransactionsActivityTable({
5056 goToFirstPageRef . current = pagination . onFirst ;
5157 const tableColumns = generateTransactionsTableColumns ( ) ;
5258
59+ const displayData =
60+ transactionKindFilter === 'ProgrammableTransaction'
61+ ? { ...data , data : data ?. data . filter ( ( tx ) => ! isEvmTransaction ( tx ) ) }
62+ : data ;
63+
5364 useEffect ( ( ) => {
5465 goToFirstPageRef . current ( ) ;
5566 } , [ transactionKindFilter ] ) ;
@@ -65,15 +76,15 @@ export function TransactionsActivityTable({
6576 />
6677 ) : (
6778 < div className = "flex flex-col space-y-3 text-left" >
68- { isPending || isFetching || ! data ?. data ? (
79+ { isPending || isFetching || ! displayData ?. data ? (
6980 < PlaceholderTable
7081 rowCount = { limit }
7182 rowHeight = "16px"
7283 colHeadings = { [ 'Type' , 'Sender' , 'Txns' , 'Gas' , 'Time' ] }
7384 />
7485 ) : (
7586 < TableCard
76- data = { data . data }
87+ data = { displayData ! . data }
7788 columns = { tableColumns }
7889 totalLabel = { count ? `${ numberSuffix ( Number ( count ) ) } Total` : '-' }
7990 viewAll = "/recent"
0 commit comments