OrionUnit siblings introduced

This commit is contained in:
Aleksandr Kraiz
2022-05-12 10:55:46 +04:00
parent 5735374575
commit c9acc57d68
7 changed files with 34 additions and 11 deletions

View File

@@ -1,7 +1,6 @@
import { config, OrionUnit } from '.';
import OrionUnit from './OrionUnit';
import { isValidChainId } from './utils';
const { chains, envs } = config;
import { chains, envs } from './config';
export default function initOrionUnit(chain: string, env: string) {
if (!isValidChainId(chain)) throw new Error(`Chain '${chain}' is not valid.`);