Syncronised the *.ligo files of the tutorial with the contents of the tutorial.
This commit is contained in:
parent
9fb311ef13
commit
817e94603b
@ -11,7 +11,7 @@ type return is list (operation) * taco_shop_storage
|
|||||||
const ownerAddress : address = "tz1TGu6TN5GSez2ndXXeDX6LgUDvLzPLqgYV"
|
const ownerAddress : address = "tz1TGu6TN5GSez2ndXXeDX6LgUDvLzPLqgYV"
|
||||||
const donationAddress : address = "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx"
|
const donationAddress : address = "tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx"
|
||||||
|
|
||||||
function main (const taco_kind_index : nat; var taco_shop_storage : taco_shop_storage) : return is
|
function buy_taco (const taco_kind_index : nat; var taco_shop_storage : taco_shop_storage) : return is
|
||||||
block {
|
block {
|
||||||
// Retrieve the taco_kind from the contract's storage or fail
|
// Retrieve the taco_kind from the contract's storage or fail
|
||||||
const taco_kind : taco_supply =
|
const taco_kind : taco_supply =
|
||||||
|
@ -8,7 +8,7 @@ type taco_shop_storage is map (nat, taco_supply)
|
|||||||
|
|
||||||
type return is list (operation) * taco_shop_storage
|
type return is list (operation) * taco_shop_storage
|
||||||
|
|
||||||
function main (const taco_kind_index : nat ; var taco_shop_storage : taco_shop_storage) : return is
|
function buy_taco (const taco_kind_index : nat ; var taco_shop_storage : taco_shop_storage) : return is
|
||||||
block {
|
block {
|
||||||
// Retrieve the taco_kind from the contract's storage or fail
|
// Retrieve the taco_kind from the contract's storage or fail
|
||||||
const taco_kind : taco_supply =
|
const taco_kind : taco_supply =
|
||||||
|
Loading…
Reference in New Issue
Block a user