|
|
@ -233,7 +233,8 @@ 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 |
|
|
|