pull/3321/head^2
Joseph Izang 2 years ago committed by Aniket
parent 189d8c9490
commit 41dd8d871e
  1. 5
      libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx

@ -233,12 +233,13 @@ export const ContractSelection = (props: ContractSelectionProps) => {
} }
const showFlattener = () => { const showFlattener = () => {
const confirmNodeType = api.getCompilationResult().data.sources[api.currentFile].ast.nodes.some(x => x.nodeType === 'ImportDirective') const confirmNodeType = api.getCompilationResult().data.sources[api.currentFile]
.ast.nodes.some(x => x.nodeType === 'ImportDirective')
const currentFile = api.currentFile.split('/')[1] const currentFile = api.currentFile.split('/')[1]
const contractListConfirm = contractList.some(x => x.file === currentFile) const contractListConfirm = contractList.some(x => x.file === currentFile)
return confirmNodeType && contractListConfirm return confirmNodeType && contractListConfirm
} }
return ( return (
// define swarm logo // define swarm logo
<> <>

Loading…
Cancel
Save