These are chat archives for ethereum/tutorials

27th
Jul 2016
Patrick McCorry
@stonecoldpat
Jul 27 2016 09:30
I'm copied the full token example, deployed the contract, now I am trying to deposit ether into it... when I hit "deposit ether" and hit "send" with 1 ether, the dialog that pops up says that "Execution failed. Consumed all provided gas", but I have not even sent the transaction yet? (I also have enough ether to cover the gas cost?)
Alex Van de Sande
@alexvandesande
Jul 27 2016 13:43
@stonecoldpat why do you want to send ether into the token contract? It would simply lock your ether forever if you did it. It seems you are misunderstanding something.
Patrick McCorry
@stonecoldpat
Jul 27 2016 15:43
Ah. From what I understood. The contract needs to have ether. For example, if I want to sell my 'B' tokens to the contract, then the sell function accepts the 'B' tokens, and informs the contract to send Ether to the seller (at the going SellPrice).
Patrick McCorry
@stonecoldpat
Jul 27 2016 23:11
Also, I made this simple event GotHash(block.blockhash(block.number), block.number); and the block hash always seems to be 0. Am I doing anything wrong here ?