mirror of https://github.com/embarklabs/embark.git
fix: fetch accounts
This commit is contained in:
parent
90adaab523
commit
7d5935dc0b
|
@ -18,8 +18,7 @@ class Provider {
|
||||||
this.nonceCache = {};
|
this.nonceCache = {};
|
||||||
|
|
||||||
this.events.setCommandHandler("blockchain:provider:contract:accounts:get", cb => {
|
this.events.setCommandHandler("blockchain:provider:contract:accounts:get", cb => {
|
||||||
const accounts = this.accounts.map(a => a.address);
|
cb(this.accounts);
|
||||||
cb(accounts);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue