32 Comments

  1. Great Tutorial, Can you please tell me what is the difference between the __allowances[msg.sender][__spender] and __allowances[__owner][msg.sender]? Who is owner here and who is the spender?

  2. what if i give 2000 in the approve method… it would go through right ? as that line doesnt check whether the approved allowance is greater than total supply ?
    aftr that if i execute the transferFrom method with 2000, basically i will allow someone to take more than the total supply

  3. HI-nice videos very useful .i have one doubt how to call deployed contract token balance from existing contract??how to transfer that tokens to some other address?

  4. Hi, checked over many times to make sure I implemented all functions from ERC20, but still receive the error : This contract does not implement all functions and thus cannot be created.

  5. __allowances mapping is confusing me. Why we need to specify our address while approving a value for spender to spend when we are the owner of the tokens? and Why we want to make a relation between owner and spender address? if any one can reply this please.

  6. A great work. thanks a lot. I have one question. Why totalSupply needs to be constant? what if we sold out all tokens and want to release more?

  7. My understanding of decimals was that it was merely visual, and that if you put __totalSupply = 100000 and decimals = 3, that would tell outside software using the token that the coin has 100.000 units available, and being able to divide 1 individual unite 1000 ways. I noticed you did not use decimals in this fashion, does this mean I am incorrect or was it an accident in the video?

  8. Hi, great series. Question: If you set up an ERC20 token for say XYZcompany, the person setting it up then has the private key and can send tokens at will to their private account. Doing it jointly with others just proliferates the problem.

    Is it possible to have a mechanism that requires multiple sign-offs before large or frequent payments can be made?

  9. Hi! Thank you for your tutorial, it is very helpful for noobs like me.
    I have a question. If you transfer a token to someone, is it necessary to reciepient to have an account/wallet for that kind of tokens? Thanks!

  10. Greetings James, your tutorials are amazing and well structured. Please continue making such videos. I have a small doubt. Please help me out here. You have added indexed keyword in your events. How are indexed parameters in event different from those which are not?

  11. In previous tutorials you talked about modifiers that for example limit certain functions to the owner of the contract. Might it also be prudent here to add isOwner modifiers to certain functions?

  12. How does:
    function balanceOf(address _owner) constant returns (uint balance) {
    return balances[_owner];
    }
    know that it should return the .value from request?

    balances is a block of memory that stores uint which can be accessed by address. So when does these values get populated?

  13. Many thanks great help with our ICO London's first peer to peer ridesharing service run by former Uber and Addison Lee drivers, if we wanted to pay in Eth for referrals to Blockchain Cabs from customers we would use what function?

  14. Hi,
    While registering allowance for a spender, you are registering as __allowances[_owner][_spender] but while checking during transferFrom, you are checking as __allowances[_from][msg.sender], where _from would be the spender. Isn't this wrong? I tried testing, it did not work. So in transferFrom, I reveresed as __allowances[msg.sender][_from], which seems to be working. Please clarify. Here is the working test demo after correction:

    bit.do/testdemo_erc20_parthi2929

  15. Thank you for the awesome tutorial! I would like to ask if you can further explain the last 3 functions? Correct me if I’m wrong, but the transferFrom function means giving a user authority to transfer a certain amount of token from one user to another? Can you give an example where this is used? Thank you very much!

Leave a Reply

Your email address will not be published.


*