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:
emizzle 2019-06-24 23:19:17 +10:00 committed by Michael Bradley
parent 2ce9ca6bb0
commit 71cb161525
1 changed files with 3 additions and 0 deletions

View File

@ -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) {