From 222c7cbc245252fa47a5800cfc289e0e33a84476 Mon Sep 17 00:00:00 2001 From: Igor Shadurin Date: Thu, 9 Nov 2023 22:42:53 +0300 Subject: [PATCH] fix: incorrect async call to toString method --- helper-functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper-functions.js b/helper-functions.js index b1021674..1da4d88d 100644 --- a/helper-functions.js +++ b/helper-functions.js @@ -18,7 +18,7 @@ const autoFundCheck = async (contractAddr, networkName, linkTokenAddress, additi const balanceBN = await linkTokenContract.balanceOf(signer.address) const balance = balanceBN.toString() const contractBalanceBN = await linkTokenContract.balanceOf(contractAddr) - const contractBalance = await contractBalanceBN.toString() + const contractBalance = contractBalanceBN.toString() if (balance > amount && amount > 0 && contractBalance < amount) { //user has enough LINK to auto-fund //and the contract isn't already funded