0

I tried to use sendSignedTransaction function, it signed and sent the transaction successfully(i think), but it's not transferring tokens as it ought to. It's basically not doing the intended task 😔

Please, i need some help. Below is a link to the gist on GitHub

https://gist.github.com/SirPhemmiey/f2d0b6c1cbf5588abe38bf6b2beddc92

  • Do you have the hash from a failed transaction we can inspect? – Ismael Nov 1 '19 at 4:21
  • Yes, i do. But unfortunately, it's on my private blockchain (Ganache) – SirPhemmiey Nov 1 '19 at 9:37
  • In order to use transferFrom from a contract the token's owner must have called previously approve on the contract address. Your contract checks for allowance and revert, so that might be a possible place where to look for. – Ismael Nov 1 '19 at 15:59

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.