Skip to content

Instantly share code, notes, and snippets.

@DMantis
DMantis / part.cpp
Created June 3, 2018 14:09
part of eos contract
// @abi_action
void addheir(account_name testator, account_name heir) {
auto header = "======== add_heir function ========";
print(header, "\n" );
heir_table_type heir_table( code_account, testator );
eosio_assert(testator == _self, "you can't add heir to another person!");
heir_table.emplace(testator, [&]( auto& h_rec ) {

Keybase proof

I hereby claim:

  • I am DMantis on github.
  • I am mantis (https://keybase.io/mantis) on keybase.
  • I have a public key whose fingerprint is 58D5 38E6 DAAC 47A7 348E D825 2C8B EB18 B81F 6034

To claim this, I am signing this object: