mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
remove siwe feature flag (#17690)
Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
This commit is contained in:
parent
0c2af508ef
commit
7aad1c9650
@ -9,8 +9,5 @@ PUBNUB_SUB_KEY=
|
||||
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=
|
||||
|
||||
; Set this to test changes to the phishing warning page.
|
||||
PHISHING_WARNING_PAGE_URL=
|
||||
|
@ -166,7 +166,7 @@ export default function createRPCMethodTrackingMiddleware({
|
||||
properties.method = method;
|
||||
}
|
||||
|
||||
if (process.env.SIWE_V1 && method === MESSAGE_TYPE.PERSONAL_SIGN) {
|
||||
if (method === MESSAGE_TYPE.PERSONAL_SIGN) {
|
||||
const data = req?.params?.[0];
|
||||
const { isSIWEMessage } = detectSIWE({ data });
|
||||
if (isSIWEMessage) {
|
||||
@ -208,7 +208,7 @@ export default function createRPCMethodTrackingMiddleware({
|
||||
properties.method = method;
|
||||
}
|
||||
|
||||
if (process.env.SIWE_V1 && method === MESSAGE_TYPE.PERSONAL_SIGN) {
|
||||
if (method === MESSAGE_TYPE.PERSONAL_SIGN) {
|
||||
const data = req?.params?.[0];
|
||||
const { isSIWEMessage } = detectSIWE({ data });
|
||||
if (isSIWEMessage) {
|
||||
|
@ -14,7 +14,6 @@ const configurationPropertyNames = [
|
||||
'SEGMENT_HOST',
|
||||
'SEGMENT_WRITE_KEY',
|
||||
'SENTRY_DSN_DEV',
|
||||
'SIWE_V1',
|
||||
'SWAPS_USE_DEV_APIS',
|
||||
];
|
||||
|
||||
|
@ -1123,7 +1123,6 @@ async function getEnvironmentVariables({ buildTarget, buildType, version }) {
|
||||
SEGMENT_WRITE_KEY: getSegmentWriteKey({ buildType, config, environment }),
|
||||
SENTRY_DSN: config.SENTRY_DSN,
|
||||
SENTRY_DSN_DEV: config.SENTRY_DSN_DEV,
|
||||
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',
|
||||
|
@ -35,7 +35,7 @@ const signatureSelect = (txData) => {
|
||||
return SignatureRequest;
|
||||
}
|
||||
|
||||
if (process.env.SIWE_V1 && siwe?.isSIWEMessage) {
|
||||
if (siwe?.isSIWEMessage) {
|
||||
return SignatureRequestSIWE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user