Fix: network codes

This commit is contained in:
Aleksandr Kraiz
2023-02-10 17:28:52 +04:00
parent bd1c8077bb
commit 7882b66871
5 changed files with 11 additions and 8 deletions

View File

@@ -6,6 +6,7 @@ import type { SupportedChainId, VerboseOrionUnitConfig } from '../types';
import Exchange from './Exchange';
import FarmingManager from './FarmingManager';
import { chains } from '../config';
import { networkCodes } from '../constants';
// type KnownConfig = {
// env: string;
@@ -17,7 +18,7 @@ import { chains } from '../config';
export default class OrionUnit {
// public readonly env?: string;
public readonly networkCode: string;
public readonly networkCode: typeof networkCodes[number];
public readonly chainId: SupportedChainId;