mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Change api used for opensea validation (#18383)
* Change api used for opensea validation * fix build
This commit is contained in:
parent
50d8740a0d
commit
a28256ace4
@ -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();
|
||||
}
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user