Skip to content

Instantly share code, notes, and snippets.

@MikkySnow
Created July 3, 2018 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikkySnow/b3d70cab6119cab8cc0851f91d92eb7c to your computer and use it in GitHub Desktop.
Save MikkySnow/b3d70cab6119cab8cc0851f91d92eb7c to your computer and use it in GitHub Desktop.
#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