I have a ERC-20 contract with the main function´s. I generate 1000000 coins and I´m trying to do the following:
- There are 3 user´s (a, b, c)
- The c user have 10 coins, and wants to aprove to the b account to be able to manage 5 coins of the c user. For send to the a account.
I make this:
- Unlock accounts
- Send 10 coins to the c account
- Call to the approve function with the account c address and the quantity of coin´s
Now I don´t know what I have to do. Because in the approve function I approve 5 coins to the c account. But I don´t specified that the b account will be able to manage that coins.
Once that is made i have to call to the transferFrom and give like parameter the the b account (allowed account), the a account (receiver) and the quantity