handle other kind of contract file

pull/5370/head
yann300 4 years ago committed by GitHub
parent 3ef47c4d55
commit fa9283076b
  1. 5
      apps/remix-ide/src/app/tabs/runTab/contractDropdown.js

@ -201,7 +201,10 @@ class ContractDropdownUI {
this.selectContractNames.style.display = 'none'
this.enableContractNames(true)
this.enableAtAddress(true)
} else if (/.(.sol)$/.exec(currentFile)) {
} else if (/.(.sol)$/.exec(currentFile)
|| /.(.vy)$/.exec(currentFile)
|| /.(.lexon)$/.exec(currentFile)
|| /.(.contract)$/.exec(currentFile)) {
this.createPanel.style.display = 'block'
this.orLabel.style.display = 'block'
this.contractNamesContainer.style.display = 'block'

Loading…
Cancel
Save