Pascal-Chapter Transactions

Chapter 17 : Transactions

Hey captain, we’ve been hanging with that vendor a long time now. Can we finally pay him and go to Osiris?

You can transfer tez to an account, or to a function of another smart contract. For this, use :

Tezos.transaction (<parameter>, <mutez>, <contract>);

where :

  • parameter is the entrypoint of another contract, or use unit if you are transferring to a wallet address,
  • mutez is the amount to transfer,
  • contract is the contract interface of the targeted contract. It can be retrieved from address of the other contract or the wallet.

Your mission

1- Transfer the purchase_price to the vendor_contract

AWAITING VALIDATION

Type your solution above and validate your answer