mirror of https://github.com/embarklabs/embark.git
feat(@embark/blockchain-connector): Add command to get full account info
This PR adds a command to get full account details from the contradts config that includes info like private key. The existing, and similar command, `blockchain:provider:contract:accounts:get` would only return account addresses if they existed, and not the full account info.
This commit is contained in:
parent
2ce9ca6bb0
commit
71cb161525
|
@ -22,6 +22,9 @@ class Provider {
|
|||
const accounts = this.accounts.map(a => a.address || a);
|
||||
cb(null, accounts);
|
||||
});
|
||||
this.events.setCommandHandler("blockchain:provider:contract:accounts:getAll", (cb) => {
|
||||
cb(null, this.accounts);
|
||||
});
|
||||
}
|
||||
|
||||
getNonce(address, callback) {
|
||||
|
|
Loading…
Reference in New Issue