|
|
@ -217,11 +217,7 @@ export function ContractDropdownUI(props: ContractDropdownProps) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const updateCompilerName = () => { |
|
|
|
const updateCompilerName = () => { |
|
|
|
console.log('updateCompilerName', contractsRef.current.value) |
|
|
|
|
|
|
|
if (contractsRef.current.value) { |
|
|
|
if (contractsRef.current.value) { |
|
|
|
console.log(contractsRef.current.value) |
|
|
|
|
|
|
|
const compilerNames = [...new Set([...contractList[currentFile].map(contract => contract.compilerName)])] |
|
|
|
|
|
|
|
console.log(compilerNames) |
|
|
|
|
|
|
|
contractList[currentFile].forEach(contract => { |
|
|
|
contractList[currentFile].forEach(contract => { |
|
|
|
if (contract.alias === contractsRef.current.value) { |
|
|
|
if (contract.alias === contractsRef.current.value) { |
|
|
|
setCompilerName(contract.compilerName) |
|
|
|
setCompilerName(contract.compilerName) |
|
|
|