RE: How to Create Ethereum Smart Contracts

You are viewing a single comment's thread from:

How to Create Ethereum Smart Contracts

in ethereum •  7 years ago 

I want to send 5000 Tokens for 1 ETH and for that reason I added that line: "unitsOneEthCanBuy = 5000".

But my problem is i have complately forgot about decimals! My decimal is 18 so i think i should have write 50 instead of 5000.

Does anyone know how to fix it? i have already deployed, verified and published my smart contract.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!