Skip to content

fix: chain registry search all chains #2272

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chetankashetti
Copy link

Description

This PR fixes issue #2240 by updating the getChainRegistryByChainName function to search ALL chains instead of just IBC chains.

Changes

  • Modified getChainRegistryByChainName to search both IBC chains and Namada chains
  • Prioritizes IBC chains first, then falls back to Namada chains
  • Added comprehensive test suite with 29 test cases covering all functions in the module
  • Cleaned up temporary files and backup files

Testing

  • All 29 tests pass successfully
  • Functionality verified to work as expected

Fixes #2240

- Updated `getChainRegistryByChainName` to first search in IBC chains and fallback to Namada chains.
- Introduced a new test suite for integration functions, covering various scenarios for chain registry retrieval, RPC and REST API access, and IBC asset handling.
- Added tests to ensure correct behavior for both existing and non-existent chains, as well as prioritization of IBC chains over Namada chains.
@chetankashetti chetankashetti changed the title Fix/chain registry search all chains fix: chain registry search all chains Aug 4, 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.

Fix function names in integrations/functions.ts
1 participant