Commit 6abb3dd4 authored by yann300's avatar yann300

remove getSource from rhpAPI

parent ea30e7f9
......@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment