mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
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…
x
Reference in New Issue
Block a user