remove visitContracts

pull/3094/head
yann300 7 years ago
parent dae762073d
commit e42039c58f
  1. 3
      src/app.js
  2. 4
      src/app/tabs/compile-tab.js
  3. 2
      src/app/tabs/run-tab.js

@ -704,9 +704,6 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
document.querySelector(`.${css.dragbar2}`).style.right = delta + 'px'
onResize()
},
visitContracts: (cb) => {
compiler.visitContracts(cb)
},
switchFile: function (path) {
fileManager.switchFile(path)
},

@ -156,7 +156,7 @@ function compileTab (appAPI = {}, appEvents = {}, opts = {}) {
}
if (!error) {
if (data.contracts) {
appAPI.visitContracts((contract) => {
opts.compiler.visitContracts((contract) => {
opts.renderer.error(contract.name, $(errorContainer), {type: 'success'})
})
}
@ -190,7 +190,7 @@ function compileTab (appAPI = {}, appEvents = {}, opts = {}) {
contractNames.innerHTML = ''
if (success) {
contractNames.removeAttribute('disabled')
appAPI.visitContracts((contract) => {
opts.compiler.visitContracts((contract) => {
contractsDetails[contract.name] = parseContracts(contract.name, contract.object, opts.compiler.getSource(contract.file))
var contractName = yo`
<option>

@ -417,7 +417,7 @@ function contractDropdown (events, appAPI, appEvents, opts, self) {
contractNames.innerHTML = ''
if (success) {
selectContractNames.removeAttribute('disabled')
appAPI.visitContracts((contract) => {
opts.compiler.visitContracts((contract) => {
contractNames.appendChild(yo`<option>${contract.name}</option>`)
})
} else {

Loading…
Cancel
Save