Skip to content

Commit

Permalink
Change ipfs gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
ChirathB14 committed Sep 2, 2023
1 parent 705adeb commit 6b0ef69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipfs/ipfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (c *IPFSClient) UploadFile(data []byte) (string, error) {
if err != nil {
return "", err
}
return "https://ipfs.io/ipfs/" + cid, nil
return "https://gateway.ipfs.io/ipfs/" + cid, nil
}

func (c *IPFSClient) DownloadFile(cid string) ([]byte, error) {
Expand Down

0 comments on commit 6b0ef69

Please sign in to comment.