1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00

Change api used for opensea validation (#18383)

* Change api used for opensea validation

* fix build
This commit is contained in:
Jyoti Puri 2023-03-31 00:03:35 +04:00 committed by PeterYinusa
parent f3fe5c0328
commit 6b7ff32f85
2 changed files with 3 additions and 4 deletions

View File

@ -51,17 +51,15 @@ export async function securityProviderCheck(
}
const response = await fetchWithTimeout(
'https://eos9d7dmfj.execute-api.us-east-1.amazonaws.com/metamask/validate',
'https://proxy.metafi.codefi.network/opensea/security/v1/validate',
{
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
'X-API-KEY': 'NKYIN6cXkFaNnVIfzNx7s1z0p3b0B4SB6k29qA7n',
},
body: JSON.stringify(dataToValidate),
},
);
return await response.json();
}

View File

@ -3,7 +3,8 @@ const { convertToHexValue, withFixtures } = require('../helpers');
const FixtureBuilder = require('../fixture-builder');
const OPENSEA_URL =
'https://eos9d7dmfj.execute-api.us-east-1.amazonaws.com/metamask/validate';
'https://proxy.metafi.codefi.network/opensea/security/v1/validate';
/**
* @param {import('mockttp').Mockttp} mockServer - The mock server.
*/