|
2 | 2 |
|
3 | 3 | import { CAR } from '@ucanto/transport'
|
4 | 4 | import { H2 } from '@/components/Text'
|
5 |
| -import { useW3, FilecoinInfoSuccess, BlobGetSuccess, CARLink } from '@w3ui/react' |
| 5 | +import { useW3, FilecoinInfoSuccess, CARLink } from '@w3ui/react' |
6 | 6 | import useSWR from 'swr'
|
7 | 7 | import { Link, parse as parseLink } from 'multiformats/link'
|
8 | 8 | import DefaultLoader from '@/components/Loader'
|
9 | 9 | import * as Claims from '@web3-storage/content-claims/client'
|
10 |
| -import { Aggregate, MerkleTreeNode, Piece, PieceLink, PieceView, Proof, ProofData } from '@web3-storage/data-segment' |
| 10 | +import { Aggregate, Piece, PieceLink, PieceView, Proof, ProofData } from '@web3-storage/data-segment' |
11 | 11 | import CopyIcon from '@/components/CopyIcon'
|
12 | 12 | import { EqualsClaim } from '@web3-storage/content-claims/client/api'
|
13 | 13 | import { Breadcrumbs } from '@/components/Breadcrumbs'
|
@@ -73,7 +73,7 @@ export default function ItemPage ({ params }: PageProps): JSX.Element {
|
73 | 73 | const claimKey = `/assert/equals?content=${shard}`
|
74 | 74 | const claim = useSWR<EqualsClaim|undefined>(claimKey, {
|
75 | 75 | fetcher: async () => {
|
76 |
| - const claims = await Claims.read(shard) |
| 76 | + const claims = await Claims.read(shard.multihash) |
77 | 77 | for (const claim of claims) {
|
78 | 78 | if (claim.type === 'assert/equals' && isPieceLink(claim.equals)) {
|
79 | 79 | return claim
|
|
0 commit comments