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 }; }