-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix: cp-7.60.0 Generate correct blockchain explorer urls on bridge txs #23273
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
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
app/components/UI/Bridge/hooks/useMultichainBlockExplorerTxUrl/index.ts
Outdated
Show resolved
Hide resolved
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsThese changes refactor how block explorer URLs are generated for multichain transactions, specifically in the Bridge functionality. The changes consolidate block explorer logic from a Swaps-specific utility to a shared hook. Key impacts:
Why medium risk:
Why not running more tags:
Confidence: 85% - The changes are well-scoped and the affected components are clear from the code analysis. The test coverage is comprehensive. However, there's a slight uncertainty about whether other transaction viewing paths might be indirectly affected. |
|



Description
Fix an issue where the blockchain explorer urls were not generated successfully when bridging assets.
Changelog
CHANGELOG entry: Generate correct blockchain explorer URLs when bridging assets
Related issues
Fixes: #23171
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Corrects multichain block explorer URL generation for bridge transactions with proper EVM/non-EVM handling and comprehensive tests.
useMultichainBlockExplorerTxUrl):useBlockExplorerto resolve EVM explorer base URLs viagetEvmBlockExplorerUrlwith fallback togetEtherscanBaseUrl.etherscan-link.createCustomExplorerLink.getTransactionUrl; derives explorer name from URL oruseBlockExplorer.explorerName,chainName, andnetworkImageSourceconsistently (EVM via CAIP/hex; non-EVM via config).useMultichainBlockExplorerTxUrl.test.tsx):etherscan-link,useBlockExplorer,getEtherscanBaseUrl, network utils).BlockExplorersModal.test.tsx):Etherscanand oneOptimisticbutton instead of twoEtherscan.useBlockExplorer:getEvmBlockExplorerUrlin the returned API.Written by Cursor Bugbot for commit fe97a35. This will update automatically on new commits. Configure here.