Skip to content

Instantly share code, notes, and snippets.

@epicdistraction
Created December 8, 2018 15:44
Show Gist options
  • Save epicdistraction/2758b3eb3d5377ecd974cf5083599f01 to your computer and use it in GitHub Desktop.
Save epicdistraction/2758b3eb3d5377ecd974cf5083599f01 to your computer and use it in GitHub Desktop.
transaction deferredTrans{};
deferredTrans.actions.emplace_back(
action({_self, N(xfer)},
N(eosio.token), N(transfer),
std::make_tuple(_self, to_act, quantity, final_memo)
)
);
deferredTrans.delay_sec = TRANSFER_DELAY;
uint128_t sender_id = (uint128_t(to_act) << 64) | now();
deferredTrans.send(sender_id, _self);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment