File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -337,8 +337,8 @@ class Blockchain {
337
337
if ( ! newAccountCommand ) return next ( ) ;
338
338
var accountNumber = 0 ;
339
339
async . whilst (
340
- function ( ) {
341
- return accountNumber < accountsToCreate ;
340
+ function ( cb ) {
341
+ cb ( null , accountNumber < accountsToCreate ) ;
342
342
} ,
343
343
function ( callback ) {
344
344
accountNumber ++ ;
Original file line number Diff line number Diff line change @@ -346,8 +346,8 @@ class Blockchain {
346
346
function newAccounts ( accountsToCreate , next ) {
347
347
var accountNumber = 0 ;
348
348
async . whilst (
349
- function ( ) {
350
- return accountNumber < accountsToCreate ;
349
+ function ( cb ) {
350
+ cb ( null , accountNumber < accountsToCreate ) ;
351
351
} ,
352
352
function ( callback ) {
353
353
accountNumber ++ ;
You can’t perform that action at this time.
0 commit comments