Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wow-sven committed Oct 22, 2023
1 parent fc7326f commit 8cdf047
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dashboard/src/pages/scan/transaction/detail/[tx_hash].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import { useRouter } from 'next/router'
// ** Store
import { useAppSelector } from 'src/store'

import { TransactionWithInfoView } from '@rooch/sdk'

const MUITableCell = styled(TableCell)<TableCellBaseProps>(({ theme }) => ({
borderBottom: 0,
paddingLeft: '0 !important',
Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions dashboard/src/pages/scan/transaction/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -30,7 +30,7 @@ import { useRooch } from '../../../../hooks/useRooch'
// import toast from "react-hot-toast";

interface CellType {
row: TransactionResultView
row: TransactionWithInfoView
}

// ** Styled components
Expand Down

0 comments on commit 8cdf047

Please sign in to comment.