From d9a118170be3a36bc1ab30afd8760637edfae6a0 Mon Sep 17 00:00:00 2001 From: Teerth Patel <76660982+teerth17@users.noreply.github.com> Date: Sun, 29 Oct 2023 15:42:09 +0530 Subject: [PATCH] Update MultisigWallet.js By using ether.provider to get balance ,it is showing error of unaddressable type. --- .../lecture-6/multisigwallet-dapp/test/MultisigWallet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/section-8/lecture-6/multisigwallet-dapp/test/MultisigWallet.js b/section-8/lecture-6/multisigwallet-dapp/test/MultisigWallet.js index e454bd0..2b75173 100644 --- a/section-8/lecture-6/multisigwallet-dapp/test/MultisigWallet.js +++ b/section-8/lecture-6/multisigwallet-dapp/test/MultisigWallet.js @@ -44,8 +44,8 @@ describe('EtherWallet', function () { value: ethers.utils.parseEther('1'), }) await tx.wait() - - const balance = await ethers.provider.getBalance(multisigWallet.address) + + const balance = await multisigWallet.balanceOf() expect(balance.toString()).to.equal(ethers.utils.parseEther('1')) }) })