mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-15 14:42:38 +03:00
Minor fix
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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}/`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user