0

Suppose I have a transaction with two actions, A and B, listed one after another. Like this:

{
  <...>,
  "actions": [
    {
      "account": "my.token",
      "name": "action_a",
      <...>
    },
    {
      "account": "my.token",
      "name": "action_b",
      <...>
    }
  ]
}

Is it guaranteed that A happens before B?

4
  • For what it's worth, the actions did happen sequentially when I tried it, but if it is not guaranteed and just happened by a happy accident, this will turn out to be problematic.
    – Gassa
    Sep 26, 2018 at 0:47
  • If you push a transaction you need a action , than you call other actions inside the initial action. Can you tell me what your actions are doing, they are independent on each other as I think Sep 26, 2018 at 6:22
  • @Nirdesh My example on the mainnet is a transfer of 10 wizards.one's wizards (table entries) between my two accounts via two actions each: eosflare.io/tx/…. For each of the 10 wizards, the second action (getfrombuff) should have failed if the first one (putinbuff) did not complete before that. The readable code is here: github.com/LetItPlay/CryptoWizards-SmartContract/blob/445400d/…, it may be outdated but I believe the updated version to have the same effect.
    – Gassa
    Sep 26, 2018 at 10:36
  • @Nirdesh Tx paste: pastebin.com/rhUHqpKp.
    – Gassa
    Sep 26, 2018 at 10:37

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.