From b881d5451a243c1fcdb61605a686582c5919f679 Mon Sep 17 00:00:00 2001 From: Ahmed Ali Date: Wed, 18 Sep 2024 20:21:33 +0100 Subject: [PATCH] fix: bigint updates chore: remove wallet task --- scripts/verify.ts | 2 +- tasks/accounts.ts | 3 ++- tasks/index.ts | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/verify.ts b/scripts/verify.ts index 8baf561..cc173ac 100644 --- a/scripts/verify.ts +++ b/scripts/verify.ts @@ -13,7 +13,7 @@ async function main() { const args: any[] = ["878979"]; // You don't want to verify on localhost - if (chainId != 31337 && chainId != 1337) { + if (chainId != 31337n && chainId != 1337n) { await verifyContract({ contractPath, contractAddress, diff --git a/tasks/accounts.ts b/tasks/accounts.ts index 8c92222..5df348c 100644 --- a/tasks/accounts.ts +++ b/tasks/accounts.ts @@ -14,7 +14,8 @@ task("accounts", "Prints the list of accounts").setAction(async (_taskArgs, hre) for (const account of accounts) { const address = account.address; - const balanceInETH = fromWei(await account.getBalance()); + const balance = await ethers.provider.getBalance(address); + const balanceInETH = fromWei(balance); accountsArray.push({ address, diff --git a/tasks/index.ts b/tasks/index.ts index a15e5aa..310523b 100644 --- a/tasks/index.ts +++ b/tasks/index.ts @@ -1,4 +1,3 @@ import "./accounts"; import "./blocknumber"; import "./networks"; -import "./wallet";