Skip to content

fix(wallet): restore tx explorer fallback when tx pattern is missing#3464

Merged
CharlVS merged 1 commit intodevfrom
fix/restore-explorer-tx-fallback
Mar 25, 2026
Merged

fix(wallet): restore tx explorer fallback when tx pattern is missing#3464
CharlVS merged 1 commit intodevfrom
fix/restore-explorer-tx-fallback

Conversation

@CharlVS
Copy link
Collaborator

@CharlVS CharlVS commented Mar 25, 2026

Summary

  • restore legacy transaction-explorer fallback behavior when a coin has a base explorer URL but no explicit explorerTxUrl pattern
  • keep the existing 0x tx-hash prefix behavior for EVM-style explorer links when using the base-URL fallback
  • add a regression test covering both the base explorer fallback and the prefixed EVM fallback path

Test plan

  • ran flutter test test_units/main.dart --plain-name "getTxExplorerUrl"
  • checked touched-file lints for lib/shared/utils/utils.dart, test_units/tests/utils/explorer_url_test.dart, and test_units/main.dart

Keep legacy explorer launches working for assets that only expose a base explorer URL by falling back to the base transaction path. Add a regression test to preserve the fallback and 0x-prefix behavior.
@CharlVS CharlVS merged commit 74c06bf into dev Mar 25, 2026
4 of 11 checks passed
@CharlVS CharlVS deleted the fix/restore-explorer-tx-fallback branch March 25, 2026 23:26
@github-actions
Copy link

Visit the preview URL for this PR (updated for commit 4367bde):

https://walletrc--pull-3464-merge-6k41l0pr.web.app

(expires Wed, 01 Apr 2026 23:31:18 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: f66a4ff03faa546f12f0ae5a841bd9eff2714dcc

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.

1 participant