@@ -86,7 +86,7 @@ const ensureFundsFor = async (
8686
8787 await waitForTransactionConfirm(web3, res.txHash);
8888
89− const newBalance = await web3.eth.getBalance(address);
89+ const newBalance = toBN(await web3.eth.getBalance(address));
9090
9191 // sanity check
9292 if (newBalance.lt(cost)) {
@@ -99,7 +99,7 @@ const ensureFundsFor = async (
9999
100100 console.log(
101101 `tank: funds have confirmed: ${address} now has ` +
102− ` ${newBalance.toString()}wei, up from ${balance.toString()}wei`
102+ `${newBalance.toString()}wei, up from ${balance.toString()}wei`
103103 );
104104 return true;
105105 } catch (error) {