|
1 | 1 | diff --git a/node_modules/@metamask/transaction-pay-controller/dist/utils/feature-flags.cjs b/node_modules/@metamask/transaction-pay-controller/dist/utils/feature-flags.cjs |
2 | | -index 66884ed..3763145 100644 |
| 2 | +index 66884ed..d475de2 100644 |
3 | 3 | --- a/node_modules/@metamask/transaction-pay-controller/dist/utils/feature-flags.cjs |
4 | 4 | +++ b/node_modules/@metamask/transaction-pay-controller/dist/utils/feature-flags.cjs |
5 | | -@@ -238,7 +238,13 @@ exports.getPayStrategiesConfig = getPayStrategiesConfig; |
| 5 | +@@ -238,7 +238,8 @@ exports.getPayStrategiesConfig = getPayStrategiesConfig; |
6 | 6 | function isRelayExecuteEnabled(messenger) { |
7 | 7 | const state = messenger.call('RemoteFeatureFlagController:getState'); |
8 | 8 | const featureFlags = state.remoteFeatureFlags?.confirmations_pay ?? {}; |
9 | 9 | - return featureFlags.payStrategies?.relay?.executeEnabled ?? false; |
10 | | -+ // Read from `gaslessEnabled` instead of `executeEnabled`. The original |
11 | | -+ // flag name predates per-version gating in the feature flag service, so |
12 | | -+ // any previously shipped client that only looks at `executeEnabled` would |
13 | | -+ // re-enable the flow on older, broken builds as soon as the flag is |
14 | | -+ // turned on. Renaming the key here ensures only clients carrying this |
15 | | -+ // patch (i.e. >=19.2.1) pick up the flag. |
| 10 | ++ // Renamed from `executeEnabled` so the flag cannot re-enable the flow on older broken versions (predates version support). |
16 | 11 | + return featureFlags.payStrategies?.relay?.gaslessEnabled ?? false; |
17 | 12 | } |
18 | 13 | exports.isRelayExecuteEnabled = isRelayExecuteEnabled; |
19 | 14 | /** |
20 | 15 | diff --git a/node_modules/@metamask/transaction-pay-controller/dist/utils/feature-flags.mjs b/node_modules/@metamask/transaction-pay-controller/dist/utils/feature-flags.mjs |
21 | | -index c8b2f8a..c7122c6 100644 |
| 16 | +index c8b2f8a..5ab03a9 100644 |
22 | 17 | --- a/node_modules/@metamask/transaction-pay-controller/dist/utils/feature-flags.mjs |
23 | 18 | +++ b/node_modules/@metamask/transaction-pay-controller/dist/utils/feature-flags.mjs |
24 | | -@@ -232,7 +232,13 @@ export function getPayStrategiesConfig(messenger) { |
| 19 | +@@ -232,7 +232,7 @@ export function getPayStrategiesConfig(messenger) { |
25 | 20 | export function isRelayExecuteEnabled(messenger) { |
26 | 21 | const state = messenger.call('RemoteFeatureFlagController:getState'); |
27 | 22 | const featureFlags = state.remoteFeatureFlags?.confirmations_pay ?? {}; |
28 | 23 | - return featureFlags.payStrategies?.relay?.executeEnabled ?? false; |
29 | | -+ // Read from `gaslessEnabled` instead of `executeEnabled`. The original |
30 | | -+ // flag name predates per-version gating in the feature flag service, so |
31 | | -+ // any previously shipped client that only looks at `executeEnabled` would |
32 | | -+ // re-enable the flow on older, broken builds as soon as the flag is |
33 | | -+ // turned on. Renaming the key here ensures only clients carrying this |
34 | | -+ // patch (i.e. >=19.2.1) pick up the flag. |
35 | 24 | + return featureFlags.payStrategies?.relay?.gaslessEnabled ?? false; |
36 | 25 | } |
37 | 26 | /** |
38 | 27 | * Get the origin gas overhead to include in Relay quote requests |
39 | 28 | diff --git a/node_modules/@metamask/transaction-pay-controller/dist/utils/feature-flags.d.cts b/node_modules/@metamask/transaction-pay-controller/dist/utils/feature-flags.d.cts |
40 | | -index 0ef444d..a23a5e6 100644 |
| 29 | +index 0ef444d..0538026 100644 |
41 | 30 | --- a/node_modules/@metamask/transaction-pay-controller/dist/utils/feature-flags.d.cts |
42 | 31 | +++ b/node_modules/@metamask/transaction-pay-controller/dist/utils/feature-flags.d.cts |
43 | | -@@ -41,7 +41,15 @@ export type PayStrategiesConfigRaw = { |
| 32 | +@@ -41,7 +41,7 @@ export type PayStrategiesConfigRaw = { |
44 | 33 | across?: AcrossConfigRaw; |
45 | 34 | relay?: { |
46 | 35 | enabled?: boolean; |
47 | 36 | - executeEnabled?: boolean; |
48 | | -+ /** |
49 | | -+ * Renamed from `executeEnabled`. The original flag name predates |
50 | | -+ * per-version gating in the feature flag service, so older clients |
51 | | -+ * that only recognise `executeEnabled` would re-enable the Relay |
52 | | -+ * /execute gasless flow on previously broken builds as soon as the |
53 | | -+ * flag is toggled on. This patched name is only read by clients |
54 | | -+ * carrying the rename patch (i.e. >=19.2.1). |
55 | | -+ */ |
56 | 37 | + gaslessEnabled?: boolean; |
57 | 38 | originGasOverhead?: string; |
58 | 39 | pollingInterval?: number; |
59 | 40 | pollingTimeout?: number; |
60 | 41 | diff --git a/node_modules/@metamask/transaction-pay-controller/dist/utils/feature-flags.d.mts b/node_modules/@metamask/transaction-pay-controller/dist/utils/feature-flags.d.mts |
61 | | -index e08336e..42ade48 100644 |
| 42 | +index e08336e..8dd8f42 100644 |
62 | 43 | --- a/node_modules/@metamask/transaction-pay-controller/dist/utils/feature-flags.d.mts |
63 | 44 | +++ b/node_modules/@metamask/transaction-pay-controller/dist/utils/feature-flags.d.mts |
64 | | -@@ -41,7 +41,15 @@ export type PayStrategiesConfigRaw = { |
| 45 | +@@ -41,7 +41,7 @@ export type PayStrategiesConfigRaw = { |
65 | 46 | across?: AcrossConfigRaw; |
66 | 47 | relay?: { |
67 | 48 | enabled?: boolean; |
68 | 49 | - executeEnabled?: boolean; |
69 | | -+ /** |
70 | | -+ * Renamed from `executeEnabled`. The original flag name predates |
71 | | -+ * per-version gating in the feature flag service, so older clients |
72 | | -+ * that only recognise `executeEnabled` would re-enable the Relay |
73 | | -+ * /execute gasless flow on previously broken builds as soon as the |
74 | | -+ * flag is toggled on. This patched name is only read by clients |
75 | | -+ * carrying the rename patch (i.e. >=19.2.1). |
76 | | -+ */ |
77 | 50 | + gaslessEnabled?: boolean; |
78 | 51 | originGasOverhead?: string; |
79 | 52 | pollingInterval?: number; |
|
0 commit comments