From de292b4d51d1387a4765387860c53d348f9cdf0a Mon Sep 17 00:00:00 2001 From: Gianfranco Date: Wed, 3 Jun 2026 10:03:41 -0300 Subject: [PATCH] relax ephemeral network check --- apps/api/src/api/services/ramp/ramp.service.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/api/src/api/services/ramp/ramp.service.ts b/apps/api/src/api/services/ramp/ramp.service.ts index d1da0ade9..fe0913e36 100644 --- a/apps/api/src/api/services/ramp/ramp.service.ts +++ b/apps/api/src/api/services/ramp/ramp.service.ts @@ -131,18 +131,12 @@ function validateAddressFormat(address: string, type: EphemeralAccountType): voi export function normalizeAndValidateSigningAccounts(accounts: AccountMeta[]) { const normalizedSigningAccounts: AccountMeta[] = []; - const allowedNetworks = new Set(Object.values(EphemeralAccountType).map(network => network.toLowerCase())); - const ephemerals: { [key in EphemeralAccountType]?: string } = {}; accounts.forEach(account => { - if (!allowedNetworks.has(account.type.toLowerCase())) { - throw new Error(`Invalid network: "${account.type}" provided.`); - } - const type = Object.values(EphemeralAccountType).find(type => type.toLowerCase() === account.type.toLowerCase()); if (!type) { - throw new Error(`Invalid ephemeral type: "${account.type}" provided.`); + return; } validateAddressFormat(account.address, type);