Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 05 2016 10:31
    @alexvandesande banned @adamskee
  • Mar 16 2016 01:12
    @alexvandesande banned @scbosse
barrard
@barrard
I have ot make a seperate token contract first?
officiumnetwork
@officiumnetwork
someone got test ether on rinkedby network?
@pypypy777 check the tutorial from ethereum.org, there are also some tutorials on youtube
alexgiul
@alexgiul
good morning I am testing crowdsale but I got a error when I try to send "ether" in change of tokens
this is the last transaction that failed
I used the same code pubblished here
The problem seems is raised when I invoke the transfer function on the token
barrard
@barrard
did you create a token and use that address for the crowdsale contract?
alexgiul
@alexgiul
yes
I modified the code in this way and now works but I really dont why
uint256 tokensForEther = (1/500)*1 ether;

// calculate token amount to be created
uint256 tokens = weiAmount/tokensForEther;
if I replace (1/500) with 1/RATE where RATE is: uint256 public constant RATE = 500; I get the error
Vidor Gencel
@vidorge
So how much tokens do you want to give for 1 ether?
alexgiul
@alexgiul
here (just for test) I put 500
I can share the code if it's easier to undestand and explain what happens
do you need the address of contracts?
Vidor Gencel
@vidorge
msg.value contains the amount of wei that the user sent along with the transaction. You take that number, multiply it by rate ( 500 ) and get the amount of tokens that the user will get. I suppose your token uses 18 decimals just like ethereum, for simplicity
alexgiul
@alexgiul
well, maybe that is the problem I see 0 decimals to the token
sorry, I set 0 decimals to the token
alexgiul
@alexgiul
How can I avoid partial token distribution?
ubaka30
@ubaka30
i copied the code but it did not work
can anyone send me code for creating token
Mehrdad Salimi
@mehrdadphp
hi
I want to use Api Ethereum with php
help me
alexgiul
@alexgiul
@ubaka30 have you find your way?
alexgiul
@alexgiul
This line makes the contract working:
uint256 tokensForEther = (1.0/500)*1 ether;
if I substitute 500 with RATE and define RATE as following:
uint public constant RATE = 500;
I got an error into the transaction
Cole Bradley
@stantoncbradley
just downloaded the wallet. it won't finish syncing, looks like related to this issue ethereum/mist#2564
anyone else experience this? really a show stopper...
Daighus
@Daighus
I just downloaded and installed Ethereum wallet, I see and understand the concept of the code(if not the nuances), the pages I read say to copy... fine. I can do that. but where to paste it?
Cole Bradley
@stantoncbradley
@Daighus Contracts -> Deploy New Contract
Daighus
@Daighus
Thank you Cole.
No button displayed. Hmm, I suppose I must wait until all downloads are complete.
Cole Bradley
@stantoncbradley
works for me w/o finishing downloading...
image.png
or are you talking about not being able to deploy?
I think it has to finish downloading so you can send ether to deploy it maybe? I'm new too
Daighus
@Daighus
@stantoncbradley https://gyazo.com/5d4660587b0ccaa4a66f872cc78999ba <-- what I have so far. So just watching.
Cole Bradley
@stantoncbradley
ohhhh. ok what I did was quit etheruem wallet. then when you open it again, you have the option to launch the app before it finishes downloading
but, it never finished downloading for me, and you need ether to deploy, which has to sync first. i'm following this tutorial now https://steemit.com/ethereum/@maxnachamkin/how-to-create-your-own-ethereum-token-in-an-hour-erc20-verified
Daighus
@Daighus
Oh! Thank you. Good info. I'll make it so.
mbaocha
@mbaocha
I have a question and i m hoping someone can assist or help point me to the right direction. After a crowdsale on erc20, how can i programmatically distribute my token to a list of address
i.e how do i interface with the smart contract to automate such distribution of tokens? Am i to write the codes in javascript or what
suraj-26p
@suraj-26p
I want to develop my own coins and ico in nodejs. can anyone help me??
abouali50
@abouali50
please ihave a probleme with " transaction sended from my ewalett in binance in ETC to other ewalet in eth but not provided how can i return my crypto? thk's