create account

RE: How To Create Your Own Ethereum Token In An Hour (ERC20 + Verified) by ocecer

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @maxnachamkin/how-to-create-your-own-ethereum-token-in-an-hour-erc20-verified

· @ocecer ·
This is a great explanation, thanks a lot. but i have a question. 

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.
properties (22)
authorocecer
permlinkre-maxnachamkin-how-to-create-your-own-ethereum-token-in-an-hour-erc20-verified-20180313t131507922z
categoryethereum
json_metadata{"tags":["ethereum"],"app":"steemit/0.1"}
created2018-03-13 13:15:06
last_update2018-03-13 13:15:06
depth1
children0
last_payout2018-03-20 13:15:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length401
author_reputation0
root_title"How To Create Your Own Ethereum Token In An Hour (ERC20 + Verified)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id44,138,032
net_rshares0