Commit e0486ca
authored
fix: update MegaETH explorer display name to Megaeth Explorer (#27592)
## **Description**
Updates the MegaETH block explorer button text from "View on Megaeth" to
"View on Megaeth Explorer" in the
Receive flow.
Adds a `BLOCK_EXPLORER_NAME_OVERRIDES` map in
`app/util/networks/index.js` that overrides the auto-derived
explorer name for `megaeth.blockscout.com`. Only MegaETH is affected;
all other networks continue using the
existing hostname-based auto-derivation logic.
## **Changelog**
CHANGELOG entry: Fixed MegaETH explorer button to display "View on
Megaeth Explorer" instead of "View on
Megaeth"
## **Related issues**
Fixes:
## **Manual testing steps**
```gherkin
Feature: MegaETH explorer button wording
Scenario: user views receive address for ETH on MegaETH
Given user has MegaETH network added
When user selects ETH on MegaETH and taps Receive
Then the button at the bottom reads "View on Megaeth Explorer"
Scenario: other networks are unaffected
Given user has other networks added
When user selects a token on another network and taps Receive
Then the explorer button text remains unchanged
```
Screenshots/Recordings
Before
<img width="463" height="763" alt="image"
src="https://github.com/user-attachments/assets/776ec304-d1bf-4bf2-b043-769122635d93"
/>
"View on Megaeth"
After
<img width="1206" height="2622" alt="image"
src="https://github.com/user-attachments/assets/5725e342-b118-4f11-969e-8ddd2b1ce0f6"
/>
"View on Megaeth Explorer"
Pre-merge author checklist
- [x] I've followed https://github.com/MetaMask/contributor-docs and
https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md.
- [x] I've completed the PR template to the best of my ability
- [x] I've included tests if applicable
- [x] I've documented my code using https://jsdoc.app/ format if
applicable
- [x] I've applied the right labels on the PR (see
https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md).
Not equired for external contributors.
Pre-merge reviewer checklist
- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes
the necessary testing evidence such as recordings and or screenshots.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Low risk string-only change: adds a hostname-specific override for one
block explorer name, leaving existing hostname-derived naming for all
other explorers unchanged.
>
> **Overview**
> Updates `getBlockExplorerName` to support hostname-specific
display-name overrides via a new `BLOCK_EXPLORER_NAME_OVERRIDES` map.
>
> This ensures `megaeth.blockscout.com` is shown as **"MegaETH
Explorer"** (e.g., in “View on …” buttons) instead of relying on the
default subdomain-based capitalization.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
dad1e7e. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent a9111b3 commit e0486ca
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
499 | 507 | | |
500 | 508 | | |
501 | 509 | | |
| |||
505 | 513 | | |
506 | 514 | | |
507 | 515 | | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
508 | 524 | | |
509 | 525 | | |
510 | 526 | | |
| |||
0 commit comments