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: search interchain tokens query searching only first chain #454

Merged
merged 3 commits into from
Sep 20, 2024

Conversation

SGiaccobasso
Copy link
Collaborator

@SGiaccobasso SGiaccobasso commented Sep 19, 2024

Description

🎫 Issue:

⛑️ What was done:

Fixed an issue where searching a token without specifying chain id was failing.
The issue was that the query was returning undefined and not null as expected by the code, returning only the result of the first chain searched.
When the chain was specified, the query was looking for the specified chain first, that's what made it work.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Ready to merge

🧪 How to test:

Run the app and go to http://localhost:3000/api/interchain-token/search?tokenAddress=0x0c66d591d1ff5944A44aebB65c33f6B6e82a124F
The same query without the change should fail.

🗒️ Notes:

  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

🎥 Recording:

fix.mov

Closes #453

Copy link

changeset-bot bot commented Sep 19, 2024

🦋 Changeset detected

Latest commit: 92c813a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@axelarjs/maestro Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Sep 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
axelar-maestro ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 1:15am
axelar-registry ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 1:15am
axelar-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 1:15am

@SGiaccobasso SGiaccobasso merged commit 649ec35 into main Sep 20, 2024
5 checks passed
@SGiaccobasso SGiaccobasso deleted the fix/search-interchain-tokens-query branch September 20, 2024 01:25
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.

ITS Token API Req For Token Not Returning
2 participants