fix call to get available balance

This commit is contained in:
woodser 2022-08-18 10:01:05 -04:00
parent 05f08c25e9
commit 6f5d1a137b

View File

@ -2230,7 +2230,7 @@ async function waitForAvailableBalance(amount: bigint, ...wallets: any[]) {
// eslint-disable-next-line no-async-promise-executor
promises.push(new Promise(async (resolve) => {
const taskLooper: any = new TaskLooper(async function() {
if (await wallet.getUnlockedBalance() >= amount) {
if (await wallet.getAvailableBalance() >= amount) {
taskLooper.stop();
resolve();
}