mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
fix: handle the case where account is an object
This commit is contained in:
parent
7d5935dc0b
commit
24a6a4701f
@ -18,7 +18,8 @@ class Provider {
|
||||
this.nonceCache = {};
|
||||
|
||||
this.events.setCommandHandler("blockchain:provider:contract:accounts:get", cb => {
|
||||
cb(this.accounts);
|
||||
const accounts = this.accounts.map(a => a.address || a);
|
||||
cb(accounts);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user