From 9c6daef0e1a7545012750db4a9cc3fdf9d726b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20J=2E=20Me=CC=81ndez?= Date: Sat, 24 Aug 2024 14:15:59 +0200 Subject: [PATCH] Config now getting additional endpoints from env as well --- src/config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index 1ada5b7b..e7566737 100644 --- a/src/config.ts +++ b/src/config.ts @@ -320,7 +320,8 @@ export function loadConfigFromOpts(opts: any): Config { hermesEndpoint: opts.hermesEndpoint ?? process.env.HERMES_ENDPOINT, heliusEndpoint: opts.heliusEndpoint ?? process.env.HELIUS_ENDPOINT, additionalSendTxEndpoints: loadCommaDelimitToStringArray( - opts.additionalSendTxEndpoints + opts.additionalSendTxEndpoints ?? + process.env.ADDITIONAL_SEND_TX_ENDPOINTS ), txConfirmationEndpoint: opts.txConfirmationEndpoint ?? process.env.TX_CONFIRMATION_ENDPOINT,