Created
July 3, 2018 14:20
-
-
Save MikkySnow/b3d70cab6119cab8cc0851f91d92eb7c to your computer and use it in GitHub Desktop.
This file contains 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
#include <eosiolib/eosio.hpp> | |
#include <eosiolib/transaction.hpp> | |
using namespace eosio; | |
using namespace std; | |
class rec : public eosio::contract { | |
public: | |
using contract::contract; | |
void recc(uint64_t value) { | |
print(value); | |
transaction out{}; | |
out.delay_sec = 5; | |
out.actions.emplace_back( | |
permission_level{_self, N(active)}, | |
N(recc), N(recc), | |
std::make_tuple(value+1) | |
); | |
out.send(value+1, _self); | |
} | |
}; | |
EOSIO_ABI( rec, (recc) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment