Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistevam committed Nov 9, 2024
1 parent 3da82ec commit bcca3d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/scripts/lib/ppom/ppom-util.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ describe('PPOM Utils', () => {

expect(response).toStrictEqual({
...SECURITY_ALERT_RESPONSE_CHAIN_NOT_SUPPORTED,
description: `Chain ID ${CHAIN_ID_UNSUPPORTED_MOCK} is not supported`,
securityAlertId: SECURITY_ALERT_ID_MOCK,
});
});
Expand Down
5 changes: 3 additions & 2 deletions app/scripts/lib/ppom/ppom-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ export async function validateRequestWithPPOM({
}): Promise<SecurityAlertResponse> {
try {
if (!(await isChainSupported(chainId))) {
return {
const response = {
...SECURITY_ALERT_RESPONSE_CHAIN_NOT_SUPPORTED,
securityAlertId,
description: `Chain ID ${chainId} is not supported`,
};
await updateSecurityResponse(request.method, securityAlertId, response);
return response;
}

await updateSecurityResponse(request.method, securityAlertId, {
Expand Down

0 comments on commit bcca3d4

Please sign in to comment.