diff --git a/src/app.js b/src/app.js index f033514446..6b70816d40 100644 --- a/src/app.js +++ b/src/app.js @@ -705,9 +705,6 @@ Please make a backup of your contracts and start using http://remix.ethereum.org document.querySelector(`.${css.dragbar2}`).style.right = delta + 'px' onResize() }, - getAccounts: (cb) => { - udapp.getAccounts(cb) - }, getSource: (fileName) => { return compiler.getSource(fileName) }, diff --git a/src/app/tabs/run-tab.js b/src/app/tabs/run-tab.js index ba6b8eafbe..3ba71cdaf0 100644 --- a/src/app/tabs/run-tab.js +++ b/src/app/tabs/run-tab.js @@ -187,7 +187,7 @@ function updateAccountBalances (container, appAPI) { RECORDER ------------------------------------------------ */ function makeRecorder (appAPI, appEvents, opts, self) { - var recorder = new Recorder(opts.compiler, { + var recorder = new Recorder(opts.compiler, opts.udapp, { events: { udapp: appEvents.udapp, executioncontext: executionContext.event, diff --git a/src/recorder.js b/src/recorder.js index 0ba76dbbca..d9298755c4 100644 --- a/src/recorder.js +++ b/src/recorder.js @@ -13,7 +13,7 @@ var modal = require('./app/ui/modal-dialog-custom') * */ class Recorder { - constructor (compiler, opts = {}) { + constructor (compiler, udapp, opts = {}) { var self = this self._api = opts.api self.event = new EventManager() @@ -61,7 +61,7 @@ class Recorder { record.name = payLoad.funAbi.name record.type = payLoad.funAbi.type - self._api.getAccounts((error, accounts) => { + udapp.getAccounts((error, accounts) => { if (error) return console.log(error) record.from = `account{${accounts.indexOf(from)}}` self.data._usedAccounts[record.from] = from