ligo/test/contracts/take_my_money.tz

10 lines
448 B
Plaintext
Raw Normal View History

parameter key_hash;
return unit;
storage unit;
code { CAR; DEFAULT_ACCOUNT; # Create an account for the recipient of the funds
DIP{UNIT}; # Push a value of the storage type below the contract
PUSH tez "1.00"; # The person can have a ꜩ
UNIT; # Push the contract's argument type
TRANSFER_TOKENS; # Run the transfer
PAIR }; # Cleanup and put the return values