From 652abba52d181a5c6ffca4372b4d6c25ee1ea6ce Mon Sep 17 00:00:00 2001 From: Caleigh Crossman <73799021+caleighc@users.noreply.github.com> Date: Mon, 7 Jul 2025 15:09:44 -0700 Subject: [PATCH] fix: update withdrawAmount parsing --- .../how-to-unit-test-a-smart-contract.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fern/tutorials/alchemy-university/smart-contract-basics/how-to-unit-test-a-smart-contract.mdx b/fern/tutorials/alchemy-university/smart-contract-basics/how-to-unit-test-a-smart-contract.mdx index 8276a997..13302d2a 100644 --- a/fern/tutorials/alchemy-university/smart-contract-basics/how-to-unit-test-a-smart-contract.mdx +++ b/fern/tutorials/alchemy-university/smart-contract-basics/how-to-unit-test-a-smart-contract.mdx @@ -219,7 +219,7 @@ As opposed to the first unit test, we will the [**Revert** Chai Matcher](https:/ ```javascript javascript - let withdrawAmount = ethers.utils.parseUnits("1", "ether"); + let withdrawAmount = ethers.parseUnits("1", "ether"); ``` @@ -255,7 +255,7 @@ Go ahead and change the value to be less than .1 ETH and see the terminal get an const [owner] = await ethers.getSigners(); - let withdrawAmount = ethers.utils.parseUnits('1', 'ether'); + let withdrawAmount = ethers.parseUnits('1', 'ether'); return { faucet, owner, withdrawAmount }; }