From 0d3076a9d3097d32ab1a3eae6bceff854d1776e2 Mon Sep 17 00:00:00 2001 From: Grzegorz Godlewski Date: Mon, 14 Oct 2024 12:08:19 +0200 Subject: [PATCH] fix(payment): fix the issue when 'glm' token would always be used instead of 'tglm' --- src/payment/payment.module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/payment/payment.module.ts b/src/payment/payment.module.ts index 960697c1e..521196ccb 100644 --- a/src/payment/payment.module.ts +++ b/src/payment/payment.module.ts @@ -97,7 +97,7 @@ export class PaymentModuleImpl implements PaymentModule { constructor(deps: GolemServices, options?: PaymentModuleOptions) { const network = options?.network ?? this.options.network; const driver = options?.driver ?? this.options.driver; - const token = (options?.token ?? MAINNETS.includes(network)) ? "glm" : "tglm"; + const token = options?.token ?? (MAINNETS.includes(network) ? "glm" : "tglm"); this.options = { network, driver, token }; this.logger = deps.logger;