Minor fix

This commit is contained in:
Aleksandr Kraiz
2022-04-24 01:47:12 +04:00
parent f4297f2a0d
commit ec79f47cef
3 changed files with 10 additions and 14 deletions

View File

@@ -36,7 +36,7 @@ export default class OrionUnit {
this.env = env;
this.apiUrl = apiUrl;
this.orionBlockchain = new OrionBlockchain(apiUrl, chainId);
this.orionBlockchain = new OrionBlockchain(apiUrl);
this.orionAggregator = new OrionAggregator(apiUrl, chainId);
this.priceFeed = new PriceFeed(apiUrl);
this.exchange = new Exchange(this);

View File

@@ -9,7 +9,6 @@ import {
import { OrionBlockchainSocketIO } from './ws';
import redeemOrderSchema from '../OrionAggregator/schemas/redeemOrderSchema';
import { sourceAtomicHistorySchema, targetAtomicHistorySchema } from './schemas/atomicHistorySchema';
import { SupportedChainId } from '../../types';
import { utils } from '../..';
interface IAdminAuthHeaders {
@@ -54,10 +53,7 @@ class OrionBlockchain {
readonly ws: OrionBlockchainSocketIO;
constructor(
apiUrl: string,
chainId: SupportedChainId,
) {
constructor(apiUrl: string) {
this.apiUrl = apiUrl;
this.ws = new OrionBlockchainSocketIO(`https://${apiUrl}/`);
}