Replace async.whilst with a while loop and edit the function called inside to return a promise rather than use a callback interface
Replace async.whilst with a while loop and edit the function called inside to return a promise rather than use a callback interface

ConsenSys/truffle