5

I have created my own currency(advancedToken) - ABC using the code given at https://www.ethereum.org/token#full-coin-code

I have understood the transfer of coin using the contract function Transfer: It calls the transfer function in the code and executes it for the parameters.Sending amount by contract function

But in the send tab of ethereum mist wallet, I can send my tokens - ABCs to another account just like I can send ethers.enter image description here

What part of code enabled this ? What function of contract is called when ABCs are send ?

7

The wallet uses the Transfer() function, just like you'd do by calling the contract directly. But we designed the interface so you don't see the difference between tokens and ether transfers.

  • What I am doing in the contract is just changing values in mapping. How your inbuilt function Transfer() is called? – Sukhmaninder Jul 12 '16 at 4:37

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.