0

I have created two test tokens and a contract. But when i call transferFrom function with web3 (i called approve function first), it is successful when the from address is the account that deployed it (accounts[0]) but it fails when I use another 'from' address (example, accounts[1]) even though the address has tokens in it.

  • Are you trying to use transferFrom from javascript or solidity? – Ismael Nov 2 '19 at 16:35

Your Answer

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

Browse other questions tagged or ask your own question.