Skip to content

Commit

Permalink
Fix errant hardhat console instruction
Browse files Browse the repository at this point in the history
ethers.toBeHex(ethers.parseUnits()) no longer appears to be supported
as written, modified to parseEther() for correct functionality.

Signed-off-by: Michael Maurer <maurer.mi@northeastern.edu>
  • Loading branch information
maurermi committed Sep 22, 2023
1 parent c372641 commit 85b2586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/parsec_user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ $ npx hardhat console

> const signers = await ethers.getSigners()
undefined
> await signers[0].sendTransaction({to:"0x08293b196E8F1c5552e455CFD10B642EC7a809A7", value:ethers.toBeHex(ethers.parseUnits("500.99"))});
> await signers[0].sendTransaction({to:"0x08293b196E8F1c5552e455CFD10B642EC7a809A7", value:ethers.utils.parseEther("500.99")});
{
...
}
Expand Down

0 comments on commit 85b2586

Please sign in to comment.