From 47c31216a88da186f95c232bfa0870dfbf9f6b32 Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Wed, 26 Jul 2023 01:18:20 -0230 Subject: [PATCH] Update controller-utils patch to restore constants The constants `MAINNET` and `TESTNET_TICKER_SYMBOLS` were removed in v3.1.0, which was accidentally omitted from the changelog and not considered in the release version (this should have been a breaking change). They have been restored until we no longer rely on packages that use `@metamask/controller-utils` at versions under v3.1.0. --- .../@metamask+controller-utils+3.4.0.patch | 51 +++++++++++++++---- 1 file changed, 42 insertions(+), 9 deletions(-) diff --git a/patches/@metamask+controller-utils+3.4.0.patch b/patches/@metamask+controller-utils+3.4.0.patch index 85e1df96817..3a726d40ea7 100644 --- a/patches/@metamask+controller-utils+3.4.0.patch +++ b/patches/@metamask+controller-utils+3.4.0.patch @@ -1,16 +1,30 @@ diff --git a/node_modules/@metamask/controller-utils/dist/constants.d.ts b/node_modules/@metamask/controller-utils/dist/constants.d.ts -index c8e8769..a78401d 100644 +index c8e8769..00e617f 100644 --- a/node_modules/@metamask/controller-utils/dist/constants.d.ts +++ b/node_modules/@metamask/controller-utils/dist/constants.d.ts -@@ -27,6 +27,7 @@ export declare const ASSET_TYPES: { +@@ -1,4 +1,7 @@ + import { NetworkType, NetworksTicker, NetworksChainId, NetworkId } from './types'; ++// PATCH: Restore `MAINNET` constant, which was removed in v3.1.0 ++// We need this patch until there are no remaining dependencies on