1

There are three EOAs: A, B, and C. B has no token.

  • TX1: A call approve B for 100 token.
  • TX2: B call transferFrom for 100 token from A to B.
  • TX3: B call transfer 100 token to C.

If these three transactions are included in same block, TX3 can success?

2

Yes, in case the transactions will be included in the same block in proper order, they will be successfully executed.

Moreover, all three operations could be done in a single transaction, in case both, A and B are contracts.

| improve this answer | |
  • Thank you for your answer. Could you let me know the flow more specifically how to make it in single transaction? – ikaop Dec 27 '19 at 15:35
  • What if both A and B are EOA, but C is contract? – ikaop Dec 27 '19 at 16:19

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.