remove getAccounts from api

pull/1/head
yann300 7 years ago
parent 64b2ec9902
commit eea2aad6d2
  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' document.querySelector(`.${css.dragbar2}`).style.right = delta + 'px'
onResize() onResize()
}, },
getAccounts: (cb) => {
udapp.getAccounts(cb)
},
getSource: (fileName) => { getSource: (fileName) => {
return compiler.getSource(fileName) return compiler.getSource(fileName)
}, },

@ -187,7 +187,7 @@ function updateAccountBalances (container, appAPI) {
RECORDER RECORDER
------------------------------------------------ */ ------------------------------------------------ */
function makeRecorder (appAPI, appEvents, opts, self) { function makeRecorder (appAPI, appEvents, opts, self) {
var recorder = new Recorder(opts.compiler, { var recorder = new Recorder(opts.compiler, opts.udapp, {
events: { events: {
udapp: appEvents.udapp, udapp: appEvents.udapp,
executioncontext: executionContext.event, executioncontext: executionContext.event,

@ -13,7 +13,7 @@ var modal = require('./app/ui/modal-dialog-custom')
* *
*/ */
class Recorder { class Recorder {
constructor (compiler, opts = {}) { constructor (compiler, udapp, opts = {}) {
var self = this var self = this
self._api = opts.api self._api = opts.api
self.event = new EventManager() self.event = new EventManager()
@ -61,7 +61,7 @@ class Recorder {
record.name = payLoad.funAbi.name record.name = payLoad.funAbi.name
record.type = payLoad.funAbi.type record.type = payLoad.funAbi.type
self._api.getAccounts((error, accounts) => { udapp.getAccounts((error, accounts) => {
if (error) return console.log(error) if (error) return console.log(error)
record.from = `account{${accounts.indexOf(from)}}` record.from = `account{${accounts.indexOf(from)}}`
self.data._usedAccounts[record.from] = from self.data._usedAccounts[record.from] = from

Loading…
Cancel
Save