fix(@embark/blockchain): fix blockchain plugins' use of async whilst

This commit is contained in:
Jonathan Rainville 2020-03-18 12:04:10 -04:00 committed by Pascal Precht
parent 031ebe8bb2
commit fde1eeb3a7
2 changed files with 4 additions and 4 deletions

View File

@ -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++;

View File

@ -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++;