From 8cdf047b07f005f6151236764c82387a7a5fa75a Mon Sep 17 00:00:00 2001 From: sven Tan Date: Sun, 22 Oct 2023 22:36:45 +0800 Subject: [PATCH] fix --- dashboard/src/pages/scan/transaction/detail/[tx_hash].tsx | 4 +++- dashboard/src/pages/scan/transaction/list/index.tsx | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dashboard/src/pages/scan/transaction/detail/[tx_hash].tsx b/dashboard/src/pages/scan/transaction/detail/[tx_hash].tsx index 6fa5371848..c69cf3f8d5 100644 --- a/dashboard/src/pages/scan/transaction/detail/[tx_hash].tsx +++ b/dashboard/src/pages/scan/transaction/detail/[tx_hash].tsx @@ -20,6 +20,8 @@ import { useRouter } from 'next/router' // ** Store import { useAppSelector } from 'src/store' +import { TransactionWithInfoView } from '@rooch/sdk' + const MUITableCell = styled(TableCell)(({ theme }) => ({ borderBottom: 0, paddingLeft: '0 !important', @@ -38,7 +40,7 @@ const TransactionDetail = () => { const txHash = router.query.tx_hash - let data: any | undefined + let data: TransactionWithInfoView | undefined if (status === 'finished') { data = result.data.find((v) => v.execution_info.tx_hash === txHash) diff --git a/dashboard/src/pages/scan/transaction/list/index.tsx b/dashboard/src/pages/scan/transaction/list/index.tsx index 3a19f9a74a..98cba9f73d 100644 --- a/dashboard/src/pages/scan/transaction/list/index.tsx +++ b/dashboard/src/pages/scan/transaction/list/index.tsx @@ -19,7 +19,7 @@ import { fetchData } from 'src/store/scan/transaction' import { useAppDispatch, useAppSelector } from 'src/store' // ** SDK Imports -import { TransactionResultView } from '@rooch/sdk' +import { TransactionWithInfoView } from '@rooch/sdk' // ** Utils import { formatAddress } from 'src/@core/utils/format' @@ -30,7 +30,7 @@ import { useRooch } from '../../../../hooks/useRooch' // import toast from "react-hot-toast"; interface CellType { - row: TransactionResultView + row: TransactionWithInfoView } // ** Styled components