-
-
Save frankhillard/935d3207fe353036cc3e80dd26d4ecca to your computer and use it in GitHub Desktop.
example of testing a smart contract (ligo)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ligo dry-run taco-shop.ligo --syntax pascaligo --amount 1 buy_taco 1n "map | |
1n -> record | |
current_stock = 50n; | |
max_price = 50000000mutez; | |
end; | |
2n -> record | |
current_stock = 20n; | |
max_price = 75000000mutez; | |
end; | |
end" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment