Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/transaction-pay-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Rename `executeEnabled` feature flag to `gaslessEnabled` ([#8607](https://github.com/MetaMask/core/pull/8607))
- Bump `@metamask/transaction-controller` from `^64.3.0` to `^64.4.0` ([#8585](https://github.com/MetaMask/core/pull/8585))
- Bump `@metamask/assets-controller` from `^6.1.0` to `^6.2.0` ([#8590](https://github.com/MetaMask/core/pull/8590))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -461,14 +461,14 @@ describe('Feature Flags Utils', () => {
expect(isRelayExecuteEnabled(messenger)).toBe(false);
});

it('returns true when executeEnabled is true', () => {
it('returns true when gaslessEnabled is true', () => {
getRemoteFeatureFlagControllerStateMock.mockReturnValue({
...getDefaultRemoteFeatureFlagControllerState(),
remoteFeatureFlags: {
confirmations_pay: {
payStrategies: {
relay: {
executeEnabled: true,
gaslessEnabled: true,
},
},
},
Expand All @@ -478,14 +478,14 @@ describe('Feature Flags Utils', () => {
expect(isRelayExecuteEnabled(messenger)).toBe(true);
});

it('returns false when executeEnabled is false', () => {
it('returns false when gaslessEnabled is false', () => {
getRemoteFeatureFlagControllerStateMock.mockReturnValue({
...getDefaultRemoteFeatureFlagControllerState(),
remoteFeatureFlags: {
confirmations_pay: {
payStrategies: {
relay: {
executeEnabled: false,
gaslessEnabled: false,
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export type PayStrategiesConfigRaw = {
across?: AcrossConfigRaw;
relay?: {
enabled?: boolean;
executeEnabled?: boolean;
gaslessEnabled?: boolean;
originGasOverhead?: string;
pollingInterval?: number;
pollingTimeout?: number;
Expand Down Expand Up @@ -477,7 +477,7 @@ export function isRelayExecuteEnabled(
(state.remoteFeatureFlags?.confirmations_pay as
| FeatureFlagsRaw
| undefined) ?? {};
return featureFlags.payStrategies?.relay?.executeEnabled ?? false;
return featureFlags.payStrategies?.relay?.gaslessEnabled ?? false;
}

/**
Expand Down
Loading