Skip to content

Commit fde1eeb

Browse files
jrainville0x-r4bbit
authored andcommitted
fix(@embark/blockchain): fix blockchain plugins' use of async whilst
1 parent 031ebe8 commit fde1eeb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/plugins/geth/src/blockchain.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ class Blockchain {
337337
if (!newAccountCommand) return next();
338338
var accountNumber = 0;
339339
async.whilst(
340-
function () {
341-
return accountNumber < accountsToCreate;
340+
function (cb) {
341+
cb(null, accountNumber < accountsToCreate);
342342
},
343343
function (callback) {
344344
accountNumber++;

packages/plugins/parity/src/blockchain.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,8 @@ class Blockchain {
346346
function newAccounts(accountsToCreate, next) {
347347
var accountNumber = 0;
348348
async.whilst(
349-
function () {
350-
return accountNumber < accountsToCreate;
349+
function (cb) {
350+
cb(null, accountNumber < accountsToCreate);
351351
},
352352
function (callback) {
353353
accountNumber++;

0 commit comments

Comments
 (0)