Skip to content

Commit

Permalink
Update IPFS gateway in iconURL
Browse files Browse the repository at this point in the history
  • Loading branch information
rkalis committed Jun 10, 2024
1 parent c38a24c commit d60e351
Show file tree
Hide file tree
Showing 4 changed files with 1,383 additions and 1,074 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@revoke.cash/chains",
"version": "44.0.0",
"version": "45.0.0",
"description": "Helper module for getting EVM chains info.",
"author": "Revoke.cash",
"contributors": [
Expand Down
2 changes: 1 addition & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const annotateIconUrls = async (chains: Chain[]) => {
`https://raw.githubusercontent.com/ethereum-lists/chains/master/_data/icons/${chain.icon}.json`
).json<Array<{ url: string }>>();

const iconURL = icon?.url?.replace('ipfs://', 'https://cloudflare-ipfs.com/ipfs/')
const iconURL = icon?.url?.replace('ipfs://', 'https://ipfs.io/ipfs/')

return { ...chain, iconURL }
})
Expand Down
Loading

0 comments on commit d60e351

Please sign in to comment.