Skip to content

Fix type issues in components and services #7

Fix type issues in components and services

Fix type issues in components and services #7

Triggered via push February 13, 2025 17:32
Status Failure
Total duration 36s
Artifacts

deploy.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 1 warning
deploy: src/components/NFTViewer.tsx#L385
'selectedAsset.description' is possibly 'undefined'.
deploy: src/hooks/useNFTFetching.ts#L22
Argument of type 'NetworkInfo | undefined' is not assignable to parameter of type 'NetworkInfo'.
deploy: src/services/__tests__/nft.service.test.ts#L44
Argument of type '{ id: string; name: string; description: string; format: string; thumbnail: string; collection: string; creator: string; technical: { storage: { type: string; hash: string; gateway: string; }; }; }[]' is not assignable to parameter of type 'NFTMetadata[]'.
deploy: src/services/wallet.service.ts#L35
Expected 0 arguments, but got 1.
deploy: src/services/wallet.service.ts#L52
Expected 0 arguments, but got 1.
deploy: src/services/wallet.service.ts#L222
Conversion of type '{ id: any; name: any; description: any; format: string; thumbnail: any; collection: any; creator: any; contract: { address: any; }; tokenId: any; network: NetworkInfo; technical: { triangles: number; ... 5 more ...; storage: { ...; }; }; media: any; raw_metadata: any; animation_url: any; model_urls: { ...; }[]; }' to type 'NFTMetadata' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
deploy: src/services/wallet.service.ts#L580
Property 'selectedNetwork' does not exist on type 'WalletService'.
deploy
Process completed with exit code 2.
deploy
Cache not found for keys: node-cache-Linux-x64-npm-2d34ec68eb5d279f7c1f0ce9a500ca3a731658ef7f0f2e148377a3279dee5ac4