1

I am playing around with the advanced token functions over at the Ethereum Token tutorial.

The contract is deploying fine on the testnet, balances my account with the created tokens and I can set the buy and sell price but now what? I can't buy tokens from the Token contract and neither can I send Ether or Tokens to it...

Am I missing something? I have not changed any of the sample code.

  • Can you provide some details on what you are doing exactly, some log or all the command lines you typed ? – Nicolas Massart Jun 5 '17 at 8:11
  • I am doing it all in Mist. All I am doing is copy & paste the code from the Ethereum page I linked above and deploy the contract in Mist. – Steve Jun 5 '17 at 9:33
1

I figured it out. msg.value has to be set in wei - I was setting it in Ether.

  • Can only do that tomorrow. – Steve Jun 5 '17 at 19:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.