Skip to content

Commit

Permalink
remove getAccounts from api
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed May 15, 2018
1 parent 64b2ec9 commit eea2aad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/tabs/run-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/recorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit eea2aad

Please sign in to comment.