diff --git a/app/scripts/lib/ppom/ppom-util.ts b/app/scripts/lib/ppom/ppom-util.ts index 7662c364b651..e8c54ee5eb53 100644 --- a/app/scripts/lib/ppom/ppom-util.ts +++ b/app/scripts/lib/ppom/ppom-util.ts @@ -11,7 +11,7 @@ import { SignatureController } from '@metamask/signature-controller'; import { BlockaidReason, BlockaidResultType, - SECURITY_PROVIDER_SUPPORTED_CHAIN_IDS, + SECURITY_PROVIDER_SUPPORTED_CHAIN_IDS_FALLBACK_LIST, SecurityAlertSource, } from '../../../../shared/constants/security-provider'; import { SIGNING_METHODS } from '../../../../shared/constants/transaction'; @@ -123,7 +123,7 @@ export function handlePPOMError( } export async function isChainSupported(chainId: Hex): Promise { - let supportedChainIds = SECURITY_PROVIDER_SUPPORTED_CHAIN_IDS; + let supportedChainIds = SECURITY_PROVIDER_SUPPORTED_CHAIN_IDS_FALLBACK_LIST; try { if (isSecurityAlertsAPIEnabled()) { diff --git a/shared/constants/security-provider.ts b/shared/constants/security-provider.ts index e6fff53ee28a..082f68aa88de 100644 --- a/shared/constants/security-provider.ts +++ b/shared/constants/security-provider.ts @@ -89,7 +89,7 @@ export const FALSE_POSITIVE_REPORT_BASE_URL = export const SECURITY_PROVIDER_UTM_SOURCE = 'metamask-ppom'; -export const SECURITY_PROVIDER_SUPPORTED_CHAIN_IDS: Hex[] = [ +export const SECURITY_PROVIDER_SUPPORTED_CHAIN_IDS_FALLBACK_LIST: Hex[] = [ CHAIN_IDS.ARBITRUM, CHAIN_IDS.AVALANCHE, CHAIN_IDS.BASE, diff --git a/test/e2e/mock-e2e.js b/test/e2e/mock-e2e.js index 85636fcb9089..5d372f3389a3 100644 --- a/test/e2e/mock-e2e.js +++ b/test/e2e/mock-e2e.js @@ -1,7 +1,7 @@ const fs = require('fs'); const { - SECURITY_PROVIDER_SUPPORTED_CHAIN_IDS, + SECURITY_PROVIDER_SUPPORTED_CHAIN_IDS_FALLBACK_LIST, } = require('../../shared/constants/security-provider'); const { BRIDGE_DEV_API_BASE_URL, @@ -160,7 +160,7 @@ async function setupMocking( .thenCallback(() => { return { statusCode: 200, - json: SECURITY_PROVIDER_SUPPORTED_CHAIN_IDS, + json: SECURITY_PROVIDER_SUPPORTED_CHAIN_IDS_FALLBACK_LIST, }; });