mirror of https://github.com/embarklabs/embark.git
fix(@embark/blockchain): fix blockchain plugins' use of async whilst
This commit is contained in:
parent
031ebe8bb2
commit
fde1eeb3a7
|
@ -337,8 +337,8 @@ class Blockchain {
|
|||
if (!newAccountCommand) return next();
|
||||
var accountNumber = 0;
|
||||
async.whilst(
|
||||
function () {
|
||||
return accountNumber < accountsToCreate;
|
||||
function (cb) {
|
||||
cb(null, accountNumber < accountsToCreate);
|
||||
},
|
||||
function (callback) {
|
||||
accountNumber++;
|
||||
|
|
|
@ -346,8 +346,8 @@ class Blockchain {
|
|||
function newAccounts(accountsToCreate, next) {
|
||||
var accountNumber = 0;
|
||||
async.whilst(
|
||||
function () {
|
||||
return accountNumber < accountsToCreate;
|
||||
function (cb) {
|
||||
cb(null, accountNumber < accountsToCreate);
|
||||
},
|
||||
function (callback) {
|
||||
accountNumber++;
|
||||
|
|
Loading…
Reference in New Issue