Merge pull request #848 from ethereum/yann300-patch-27

handle other kind of contract file
pull/854/head
yann300 4 years ago committed by GitHub
commit 0ce564c952
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) || // vyper
/.(.lex)$/.exec(currentFile) || // lexon
/.(.contract)$/.exec(currentFile)) {
this.createPanel.style.display = 'block'
this.orLabel.style.display = 'block'
this.contractNamesContainer.style.display = 'block'

Loading…
Cancel
Save