From b4507a693a233663d6e932a21c64c8a8c1abdc37 Mon Sep 17 00:00:00 2001 From: Juanma Hidalgo Date: Fri, 15 Nov 2024 14:08:21 +0100 Subject: [PATCH] feat: remove marketplaceServerURL url from transakconfig (#650) --- src/modules/gateway/sagas.ts | 4 +--- src/modules/gateway/transak/Transak.spec.ts | 1 - src/modules/gateway/types.ts | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/modules/gateway/sagas.ts b/src/modules/gateway/sagas.ts index 9e2f62f9..7c1f2ac2 100644 --- a/src/modules/gateway/sagas.ts +++ b/src/modules/gateway/sagas.ts @@ -344,9 +344,7 @@ export function createGatewaySaga(config: GatewaySagasConfig) { } } - const marketplaceAPI = new MarketplaceAPI( - transakConfig.marketplaceServerURL - ) + const marketplaceAPI = new MarketplaceAPI(transakConfig.apiBaseUrl) const transak = new Transak(transakConfig, {}, identity) let statusHasChanged = false diff --git a/src/modules/gateway/transak/Transak.spec.ts b/src/modules/gateway/transak/Transak.spec.ts index 448e0fec..1d800ac2 100644 --- a/src/modules/gateway/transak/Transak.spec.ts +++ b/src/modules/gateway/transak/Transak.spec.ts @@ -51,7 +51,6 @@ const mockConfig: GatewaySagasConfig = { pollingDelay: 50 }, [NetworkGatewayType.TRANSAK]: { - marketplaceServerURL: 'https://marketplace-server.decentraland.zone', apiBaseUrl: 'http://transak-base.url.xyz', key: 'transak-key', env: 'TEST', diff --git a/src/modules/gateway/types.ts b/src/modules/gateway/types.ts index 92f41be4..b9f8fb44 100644 --- a/src/modules/gateway/types.ts +++ b/src/modules/gateway/types.ts @@ -52,7 +52,6 @@ export type MoonPayConfig = { } export type TransakConfig = { - marketplaceServerURL: string apiBaseUrl: string key: string env: string