fix(bridge): cp-7.67.0 display block explorer tx link for Popular networks in transaction details#26659
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. |
…6419-transaction-block-tx-link-missing
…com:MetaMask/metamask-mobile into fix-26419-transaction-block-tx-link-missing
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
…com:MetaMask/metamask-mobile into fix-26419-transaction-block-tx-link-missing
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
The change is isolated to the transaction details display functionality and doesn't affect:
SmokeWalletPlatform is the appropriate tag because it covers "transaction history: displaying incoming/outgoing ETH transactions, token transfer details" which is exactly what this component handles. The incoming-transactions.spec.ts test file is tagged with SmokeWalletPlatform and tests transaction display functionality. The risk is low because:
Performance Test Selection: |
Description
getBlockExplorerForChain()inTransactionDetailsonly resolved block explorer URLs for hardcoded built-in networks (Mainnet, Linea, Sepolia) and user-added custom RPC networks. Popular networks (Arbitrum, Polygon, BNB Chain, etc.) are neither — they aren't stored innetworkConfigurations— so the method fell through toNO_RPC_BLOCK_EXPLORER, hiding the "View on X" link entirely.The fix adds a
PopularListlookup as a fallback, matching the pattern already used correctly in useBlockExplorer.ts.Changelog
CHANGELOG entry: Fixed a bug where transactions on popular networks (Arbitrum, Polygon, BNB Chain, etc.) were missing the block explorer link in transaction details
Related issues
Fixes: #26419
Manual testing steps
Screenshots/Recordings
~Before
before.mov
After
after.mov
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk UI fix that only changes how the transaction details screen resolves a block explorer URL, with added test coverage to prevent regressions.
Overview
Fixes missing “View on …” links in
TransactionDetailsfor popular networks that aren’t present innetworkConfigurationsby falling back toPopularListto resolverpcPrefs.blockExplorerUrl.Adds unit tests ensuring the correct explorer link text/URL is produced for Arbitrum, Polygon, and BNB Chain, alongside existing mainnet/custom-network coverage.
Written by Cursor Bugbot for commit 0e7e142. This will update automatically on new commits. Configure here.