Skip to content

Lesson 9: Error: value must be a string (argument="value", value=0.01, code=INVALID_ARGUMENT, version=units/5.7.0) #5282

Discussion options

You must be logged in to vote

@bijabhai-fatima In the helper-hardhat.config.js file, you need to pass value in string form parseEther.

- entranceFee: ethers.utils.parseEther(0.01),
+ entranceFee: ethers.utils.parseEther("0.01"),

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@bijabhai-fatima
Comment options

@alymurtazamemon
Comment options

Answer selected by bijabhai-fatima
@bijabhai-fatima
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants