Skip to content

Commit

Permalink
fix(@embark/blockchain): fix blockchain plugins' use of async whilst
Browse files Browse the repository at this point in the history
  • Loading branch information
jrainville authored and 0x-r4bbit committed Mar 23, 2020
1 parent 031ebe8 commit fde1eeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/plugins/geth/src/blockchain.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down
4 changes: 2 additions & 2 deletions packages/plugins/parity/src/blockchain.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit fde1eeb

Please sign in to comment.