Commit eea2aad6 authored by yann300's avatar yann300

remove getAccounts from api

parent 64b2ec99
......@@ -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)
},
......
......@@ -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,
......
......@@ -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
......
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