Skip to content

Instantly share code, notes, and snippets.

@frankhillard
Created November 25, 2019 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frankhillard/935d3207fe353036cc3e80dd26d4ecca to your computer and use it in GitHub Desktop.
Save frankhillard/935d3207fe353036cc3e80dd26d4ecca to your computer and use it in GitHub Desktop.
example of testing a smart contract (ligo)
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