From 639e14703437408fa2cdee396ce4ee447d830524 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 17 Aug 2021 11:33:14 +0200 Subject: [PATCH] remove currentFile dep --- libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx | 3 ++- libs/remix-ui/solidity-compiler/src/lib/types/index.ts | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx b/libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx index 9c2e2130c7..9f2a147ae6 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx @@ -9,7 +9,7 @@ import { Renderer } from '@remix-ui/renderer' // eslint-disable-line import './css/style.css' export const SolidityCompiler = (props: SolidityCompilerProps) => { - const { plugin, plugin: { compileTabLogic, currentFile, fileProvider, fileManager, contractsDetails, contractMap, compileErrors, isHardHatProject, setHardHatCompilation, configurationSettings } } = props + const { plugin, plugin: { compileTabLogic, fileProvider, fileManager, contractsDetails, contractMap, compileErrors, isHardHatProject, setHardHatCompilation, configurationSettings } } = props const [state, setState] = useState({ contractsDetails: {}, eventHandlers: {}, @@ -75,6 +75,7 @@ export const SolidityCompiler = (props: SolidityCompilerProps) => { ) + const currentFile = plugin.getConfiguration('currentFile') return ( <>
diff --git a/libs/remix-ui/solidity-compiler/src/lib/types/index.ts b/libs/remix-ui/solidity-compiler/src/lib/types/index.ts index b0fa52ba71..3e7bba0757 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/types/index.ts +++ b/libs/remix-ui/solidity-compiler/src/lib/types/index.ts @@ -6,7 +6,6 @@ export interface SolidityCompilerProps { compileErrors: any, isHardHatProject: boolean, compileTabLogic: any, - currentFile: string, contractsDetails: Record, fileProvider: any, fileManager: any,