1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 03:12:42 +02:00

Transaction security provider feature flag (#16776)

This commit is contained in:
Filip Sekulic 2022-12-06 15:43:53 +01:00 committed by GitHub
parent 2434c435b4
commit c3f329cc80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -9,6 +9,7 @@ PUBNUB_PUB_KEY=
PUBNUB_SUB_KEY=
TOKEN_ALLOWANCE_IMPROVEMENTS=
PORTFOLIO_URL=
TRANSACTION_SECURITY_PROVIDER=
; Set this to '1' to enable support for Sign-In with Ethereum [EIP-4361](https://eips.ethereum.org/EIPS/eip-4361)
SIWE_V1=

View File

@ -1044,6 +1044,7 @@ async function getEnvironmentVariables({ buildTarget, buildType, version }) {
SIWE_V1: config.SIWE_V1 === '1',
SWAPS_USE_DEV_APIS: config.SWAPS_USE_DEV_APIS === '1',
TOKEN_ALLOWANCE_IMPROVEMENTS: config.TOKEN_ALLOWANCE_IMPROVEMENTS === '1',
TRANSACTION_SECURITY_PROVIDER: config.TRANSACTION_SECURITY_PROVIDER === '1',
};
}

View File

@ -274,7 +274,8 @@ export default class ExperimentalTab extends PureComponent {
render() {
return (
<div className="settings-page__body">
{this.renderTransactionSecurityCheckToggle()}
{process.env.TRANSACTION_SECURITY_PROVIDER &&
this.renderTransactionSecurityCheckToggle()}
{this.renderImprovedTokenAllowanceToggle()}
{this.renderOpenSeaEnabledToggle()}
{this.renderCollectibleDetectionToggle()}