From 12533dbb4a25d2fccb6c3656f81671589ce5d5e2 Mon Sep 17 00:00:00 2001 From: Mikhail Gladchenko Date: Fri, 29 Mar 2024 13:29:02 +0000 Subject: [PATCH] fix: fix for frontage config --- package.json | 2 +- src/Unit/index.ts | 4 ++-- src/types.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0142843..f7ec7f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.20.79-rc5", + "version": "0.20.79-rc6", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/Unit/index.ts b/src/Unit/index.ts index 56d08c4..69d781f 100644 --- a/src/Unit/index.ts +++ b/src/Unit/index.ts @@ -92,7 +92,7 @@ export default class Unit { api: networkConfig.api + networkConfig.services.indexer?.http, }, frontage: { - api: networkConfig.api + networkConfig.services.frontage.http, + http: networkConfig.api + networkConfig.services.frontage.http, }, }, }; @@ -131,7 +131,7 @@ export default class Unit { this.config.basicAuth ); this.frontage = new Frontage( - this.config.services.frontage.api + this.config.services.frontage.http ); this.exchange = new Exchange(this); this.pmm = new Pmm(this); diff --git a/src/types.ts b/src/types.ts index 1d6e3fd..f5cc59d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -273,7 +273,7 @@ export type VerboseUnitConfig = { // http:// } | undefined frontage: { - api: string + http: string // For example: // http://localhost:3004/, // http://