remove getAccounts from api

pull/3094/head
yann300 7 years ago
parent a8b09803b5
commit 18e3d6be91
  1. 3
      src/app.js
  2. 2
      src/app/tabs/run-tab.js
  3. 4
      src/recorder.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)
},

@ -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

Loading…
Cancel
Save