Skip to content

Commit

Permalink
remove visitContracts
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed May 15, 2018
1 parent 6abb3dd commit 230e4bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
Expand Down
4 changes: 2 additions & 2 deletions src/app/tabs/compile-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'})
})
}
Expand Down Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/app/tabs/run-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 230e4bc

Please sign in to comment.