Skip to content

Commit

Permalink
Fix Files(IPFS) module status link and download link (polkadot-js#10181)
Browse files Browse the repository at this point in the history
  • Loading branch information
XueMoMo authored Nov 25, 2024
1 parent 9323dbf commit b52f72d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/page-files/src/CrustFiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const shortStr = (name: string, count = 6): string => {
};

function createUrl (f: SaveFile) {
const endpoint = f.UpEndpoint || 'https://ipfs.io';
const endpoint = 'https://cf-ipfs.com';

return `${endpoint}/ipfs/${f.Hash}?filename=${f.Name}`;
}
Expand Down Expand Up @@ -320,7 +320,7 @@ function CrustFiles ({ className }: Props): React.ReactElement<Props> {
colSpan={1}
>
<a
href={'https://apps.crust.network/?rpc=wss%3A%2F%2Frpc.crust.network#/storage_files'}
href={'https://apps.crust.network/?rpc=wss%3A%2F%2Frpc.crust.network#/storage_files/status/' + f.Hash}
rel='noreferrer'
target='_blank'
>{t('View status in Crust')}</a>
Expand Down

0 comments on commit b52f72d

Please sign in to comment.