From d381c47c8af572dbdbb9b4779ca49ae3f2043d0e Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 8 Feb 2021 12:42:48 +0100 Subject: [PATCH 1/3] handle other kind of contract file --- apps/remix-ide/src/app/tabs/runTab/contractDropdown.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js b/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js index f712a81d94..d5ba035a1b 100644 --- a/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js +++ b/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' From bac6588b048b8f088cd37a012c4ef1fa21b9a6ad Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 8 Feb 2021 12:51:00 +0100 Subject: [PATCH 2/3] comment and update ext --- apps/remix-ide/src/app/tabs/runTab/contractDropdown.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js b/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js index d5ba035a1b..6d7a0647c8 100644 --- a/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js +++ b/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js @@ -202,8 +202,8 @@ class ContractDropdownUI { this.enableContractNames(true) this.enableAtAddress(true) } else if (/.(.sol)$/.exec(currentFile) - || /.(.vy)$/.exec(currentFile) - || /.(.lexon)$/.exec(currentFile) + || /.(.vy)$/.exec(currentFile) // vyper + || /.(.lex)$/.exec(currentFile) // lexon || /.(.contract)$/.exec(currentFile)) { this.createPanel.style.display = 'block' this.orLabel.style.display = 'block' From 34523f395adaa9dcbba956a0aeb5a1486d14fe9f Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 8 Feb 2021 13:13:55 +0100 Subject: [PATCH 3/3] standard --- apps/remix-ide/src/app/tabs/runTab/contractDropdown.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js b/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js index 6d7a0647c8..04a53a3774 100644 --- a/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js +++ b/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js @@ -201,10 +201,10 @@ class ContractDropdownUI { this.selectContractNames.style.display = 'none' this.enableContractNames(true) this.enableAtAddress(true) - } else if (/.(.sol)$/.exec(currentFile) - || /.(.vy)$/.exec(currentFile) // vyper - || /.(.lex)$/.exec(currentFile) // lexon - || /.(.contract)$/.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'