remove getSource from rhpAPI

pull/3094/head
yann300 7 years ago
parent 1182abc7bf
commit dae762073d
  1. 3
      src/app.js
  2. 2
      src/app/tabs/compile-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()
},
getSource: (fileName) => {
return compiler.getSource(fileName)
},
visitContracts: (cb) => {
compiler.visitContracts(cb)
},

@ -191,7 +191,7 @@ function compileTab (appAPI = {}, appEvents = {}, opts = {}) {
if (success) {
contractNames.removeAttribute('disabled')
appAPI.visitContracts((contract) => {
contractsDetails[contract.name] = parseContracts(contract.name, contract.object, appAPI.getSource(contract.file))
contractsDetails[contract.name] = parseContracts(contract.name, contract.object, opts.compiler.getSource(contract.file))
var contractName = yo`
<option>
${contract.name}

Loading…
Cancel
Save