Skip to content
Discussion options

You must be logged in to vote

this is nonsense here in your helpfull_scripts.py
Web3.toWei(DECIMALS, STARTING_PRICE)

Just compare it with the original: https://github.com/PatrickAlphaC/brownie_fund_me/blob/main/scripts/helpful_scripts.py

Pythons toWei() is used like this: https://web3py.readthedocs.io/en/stable/examples.html?highlight=towei#converting-currency-denominations

If you'd like to understand the details of what Decimals are used for, read this post: #1153

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@BrysonHall
Comment options

@cromewar
Comment options

@BrysonHall
Comment options

Comment options

You must be logged in to vote
3 replies
@n4n0b1t3
Comment options

@BrysonHall
Comment options

@cromewar
Comment options

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