Skip to content

Commit

Permalink
Update asset version (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
yigiterdev authored Jul 18, 2024
1 parent df155ac commit dff9f39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const SEQUENCE_ASSETS_URL_PREFIX = 'https://assets.sequence.info/'

// Because the assets on assets.sequence.info are not versioned, we need to occasionally update the version
// in order to cache bust the assets when an asset with the same name is updated.
const VERSION = 4
const VERSION = 5

type Size = 'small' | 'medium' | 'large'
type SizeAbbreviation = 'xs' | 'sm' | 'md' | 'lg' | 'xl'
Expand Down Expand Up @@ -34,7 +34,9 @@ export const tokenImageUrl = (
) => {
return (
SEQUENCE_ASSETS_URL_PREFIX +
`images/tokens/${getSize(size)}/${chainId}/${contractAddress.toLowerCase()}.webp?v${VERSION}`
`images/tokens/${getSize(
size
)}/${chainId}/${contractAddress.toLowerCase()}.webp?v${VERSION}`
)
}

Expand Down

0 comments on commit dff9f39

Please sign in to comment.