From 57407ab25f39ba980478b4f66d59f0bd88beb237 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 31 Aug 2021 12:26:46 +0200 Subject: [PATCH] fix remix-lib reference --- .../solidity-compiler/src/lib/logic/contract-parser.ts | 4 ++-- .../static-analyser/src/lib/remix-ui-static-analyser.tsx | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/libs/remix-ui/solidity-compiler/src/lib/logic/contract-parser.ts b/libs/remix-ui/solidity-compiler/src/lib/logic/contract-parser.ts index 3894b01a9d..2b6a23fa5a 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/logic/contract-parser.ts +++ b/libs/remix-ui/solidity-compiler/src/lib/logic/contract-parser.ts @@ -1,8 +1,8 @@ 'use strict' import * as solcTranslate from 'solc/translate' -import * as remixLib from '@remix-project/remix-lib' +import { execution } from '@remix-project/remix-lib' -const txHelper = remixLib.execution.txHelper +const txHelper = execution.txHelper export function parseContracts (contractName, contract, source) { const detail: Record = {} diff --git a/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx b/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx index bd88dad856..88b7925b5c 100644 --- a/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx +++ b/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useState, useReducer } from 'react' import Button from './Button/StaticAnalyserButton' // eslint-disable-line -import remixLib from '@remix-project/remix-lib' +import { util } from '@remix-project/remix-lib' import _ from 'lodash' import { TreeView, TreeViewItem } from '@remix-ui/tree-view' // eslint-disable-line import { RemixUiCheckbox } from '@remix-ui/checkbox' // eslint-disable-line @@ -9,7 +9,6 @@ import { compilation } from './actions/staticAnalysisActions' import { initialState, analysisReducer } from './reducers/staticAnalysisReducer' import { OverlayTrigger, Tooltip } from 'react-bootstrap'// eslint-disable-line const StaticAnalysisRunner = require('@remix-project/remix-analyzer').CodeAnalysis -const utils = remixLib.util declare global { interface Window { @@ -38,7 +37,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { }) } - const groupedModules = utils.groupBy( + const groupedModules = util.groupBy( preProcessModules(runner.modules()), 'categoryId' )