From ace422c0d523ce44104255680d6df0ebdc0ee1c2 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Wed, 8 May 2024 19:58:57 +0000 Subject: [PATCH] Enable testnet4 unfurls --- frontend/src/app/app-routing.module.ts | 4 ++++ unfurler/src/routes.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/app-routing.module.ts b/frontend/src/app/app-routing.module.ts index 5262a431a..4fd1d2013 100644 --- a/frontend/src/app/app-routing.module.ts +++ b/frontend/src/app/app-routing.module.ts @@ -168,6 +168,10 @@ let routes: Routes = [ path: 'testnet', loadChildren: () => import('./previews.module').then(m => m.PreviewsModule) }, + { + path: 'testnet4', + loadChildren: () => import('./previews.module').then(m => m.PreviewsModule) + }, { path: 'signet', loadChildren: () => import('./previews.module').then(m => m.PreviewsModule) diff --git a/unfurler/src/routes.ts b/unfurler/src/routes.ts index ba8c26f0c..96c797c53 100644 --- a/unfurler/src/routes.ts +++ b/unfurler/src/routes.ts @@ -286,7 +286,7 @@ export function matchRoute(network: string, path: string, matchFor: string = 're if (parts[0] === 'preview') { parts.shift(); } - if (['testnet', 'signet'].includes(parts[0])) { + if (['testnet', 'testnet4', 'signet'].includes(parts[0])) { match.networkMode = parts.shift() || 'mainnet'; }