-
Notifications
You must be signed in to change notification settings - Fork 172
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: Rango supported network check #549
Conversation
WalkthroughThe changes involve modifications to the Changes
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (2)
✅ Files skipped from review due to trivial changes (1)
🔇 Additional comments (2)packages/swap/src/providers/rango/index.ts (2)
The added early returns improve error handling by exiting immediately when either source or destination networks are unsupported. This prevents unnecessary processing and potential errors downstream, aligning with the PR objective to fix Rango supported network checks. Also applies to: 646-646 Line range hint While the network support validation is comprehensive, let's verify that all supported networks are properly mapped to avoid potential issues. ✅ Verification successfulNetwork mappings are complete All supported networks are properly mapped with no duplicates found. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify network mapping completeness by checking:
# 1. All supported networks have corresponding Rango blockchain mappings
# 2. No duplicate chain IDs or blockchain names
# Search for network definitions and mappings
rg -A 5 'SupportedNetworkName\.' | grep -v 'case'
# Search for potential unmapped networks
ast-grep --pattern 'SupportedNetworkName.$_'
Length of output: 60880 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
💼 Build Files |
Fixes a bug where Rango doesn't exit early if a network is not supported.
Summary by CodeRabbit
New Features
Bug Fixes
null
in case of issues.Tests