Created
January 8, 2022 15:54
-
-
Save MCarlomagno/420dec3ae3f3e3c72bb60cd858a491e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void ask(account_name administrator, account_name contract, string task, uint32_t update_each, string memo, bytes args) | |
{ | |
require_auth(administrator); | |
auto itt = requests.find(pack_hash(get_full_hash(task, memo, contract))); | |
eosio_assert(itt == requests.end() || itt->mode != REPEATABLE_REQUEST, "Already repeatable request"); | |
set(request{task, | |
memo, | |
args, | |
administrator, | |
contract, | |
0, | |
update_each, | |
REPEATABLE_REQUEST}, | |
administrator); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment