Skip to content

Instantly share code, notes, and snippets.

@epicdistraction
Created December 8, 2018 15:46
Show Gist options
  • Save epicdistraction/1b65fcaa9dbd2814028046ba9c366ff0 to your computer and use it in GitHub Desktop.
Save epicdistraction/1b65fcaa9dbd2814028046ba9c366ff0 to your computer and use it in GitHub Desktop.
transaction deferredTrans{};
deferredTrans.actions.emplace_back(
action({_self, "removefunds"_n)},
"eosio.token"_n), "transfer"_n,
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