Skip to content

Commit

Permalink
Update ipfs gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
pgebheim committed Aug 14, 2020
1 parent 85b570f commit d422326
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/augur-sdk-lite/src/AugurLite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class AugurLite {

async getIPFSFile(ipfsPath: string) {
const fileRetrievalFn = (ipfsPath: string) =>
fetch(`https://cloudflare-ipfs.com/ipfs/${ipfsPath}/index `)
fetch(`https://dweb.link/ipfs/${ipfsPath}/index `)
.then((item) => item.arrayBuffer())
.then((item) => new Uint8Array(item));

Expand Down
2 changes: 1 addition & 1 deletion packages/augur-sdk/src/warp/WarpController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class WarpController {
// This is to simplify swapping out file retrieval mechanism.
private _fileRetrievalFn: (ipfsPath: string) => Promise<Uint8Array> = (
ipfsPath: string
) => fetch(`https://cloudflare-ipfs.com/ipfs/${ipfsPath}`)
) => fetch(`https://dweb.link/ipfs/${ipfsPath}`)
.then(item => item.arrayBuffer())
.then(item => new Uint8Array(item))
) {
Expand Down

0 comments on commit d422326

Please sign in to comment.