Skip to content

Commit

Permalink
fix(payment): fix the issue when 'glm' token would always be used ins…
Browse files Browse the repository at this point in the history
…tead of 'tglm'
  • Loading branch information
grisha87 committed Oct 14, 2024
1 parent 57c7774 commit 0d3076a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/payment/payment.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0d3076a

Please sign in to comment.