Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tokenList): isLatestVersion-version-check #57

Merged
merged 8 commits into from
Feb 25, 2025

Conversation

BitWonka
Copy link
Contributor

@BitWonka BitWonka commented Nov 8, 2024

Hi guys,

came across a small bug with the token lists, the arguments were inverted causing new token lists to not be set to cache.

newer version needs to be the first paramater

export function isLatestVersion(
  newVersion: UniTokenListVersion,
  oldVersion: UniTokenListVersion
) {
  return compareVersion(newVersion, oldVersion) === 1;
}

Screenshot 2024-11-08 at 03 14 17

@opptylabs opptylabs merged commit d6d94c8 into sonarwatch:main Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants