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')) }) })