You are viewing a single comment's thread from:

RE: How to Create Ethereum Smart Contracts

in #ethereum7 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.

Coin Marketplace

STEEM 0.18
TRX 0.15
JST 0.029
BTC 62720.27
ETH 2447.07
USDT 1.00
SBD 2.64