Commit d089f24
authored
fix: Rename gasless feature flag (#8801)
## What changed
- Renamed the Relay execute feature flag in `transaction-pay-controller`
from `gaslessEnabled` to `isGaslessEnabled`.
- Updated feature flag tests to use the new key for both enabled and
disabled cases.
- Added an Unreleased changelog entry referencing this PR.
## Why
This separates the new gasless toggle from the prior release flag so
rollout can use one flag up to a given release and another flag starting
with this release.
## Validation
- `yarn workspace @metamask/transaction-pay-controller run jest
--no-coverage src/utils/feature-flags.test.ts`
- `yarn workspace @metamask/transaction-pay-controller run test`
- `yarn workspace @metamask/transaction-pay-controller run
changelog:validate`
- `yarn build`
- `yarn lint`
Note: `yarn validate:changelog` is not defined at the repo root in this
checkout, so I used the package changelog validation script.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Low risk: this is a straightforward rename of a remote feature-flag
key used to gate Relay `/execute` gasless behavior, with tests updated
accordingly. Main risk is rollout/config mismatch if any clients or flag
payloads still send `gaslessEnabled`.
>
> **Overview**
> Renames the Relay gasless execution remote feature flag key from
`gaslessEnabled` to `isGaslessEnabled` and updates
`isRelayExecuteEnabled` (and its `PayStrategiesConfigRaw` typing) to
read the new key.
>
> Updates unit tests to assert the new flag name and adds an Unreleased
changelog entry documenting the rename.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
f79da17. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 5d82bb1 commit d089f24
3 files changed
Lines changed: 10 additions & 6 deletions
File tree
- packages/transaction-pay-controller
- src/utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
| 467 | + | |
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
| 474 | + | |
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | | - | |
| 484 | + | |
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
491 | | - | |
| 491 | + | |
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
| 499 | + | |
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| |||
0 commit comments