handle other kind of contract file

pull/848/head
yann300 4 years ago committed by GitHub
parent 2cdaa1c660
commit d381c47c8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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