Skip to content

Instantly share code, notes, and snippets.

@akhiltiwari-tr
Created June 29, 2018 10:09
Show Gist options
  • Save akhiltiwari-tr/139e07648d46376dd6d672d3e966b348 to your computer and use it in GitHub Desktop.
Save akhiltiwari-tr/139e07648d46376dd6d672d3e966b348 to your computer and use it in GitHub Desktop.
void escrow::estransfer( account_name from,
account_name to,
account_name agent,
asset quantity)
{
eosio_assert( from != to, "cannot transfer to self" );
require_auth( from );
eosio_assert( is_account( to ), "to account does not exist");
eosio_assert( is_account( agent ), "escrow agent account does not exist");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment