diff --git a/packages/asset-swapper/src/utils/quote_requestor.ts b/packages/asset-swapper/src/utils/quote_requestor.ts index 872dddf695..2ac927df8a 100644 --- a/packages/asset-swapper/src/utils/quote_requestor.ts +++ b/packages/asset-swapper/src/utils/quote_requestor.ts @@ -85,7 +85,7 @@ export class QuoteRequestor { private readonly _schemaValidator: SchemaValidator = new SchemaValidator(); private readonly _warningLogger: (s: string) => void; - constructor(rfqtMakerEndpoints: string[], logger: (s: string) => void = logUtils.warn.bind(logUtils)) { + constructor(rfqtMakerEndpoints: string[], logger: (s: string) => void = s => logUtils.warn(s)) { this._rfqtMakerEndpoints = rfqtMakerEndpoints; this._warningLogger = logger; }