Commit cd486cf8 authored by Konstantin Ivanov's avatar Konstantin Ivanov

Fix value samples in tutorial

Terms like `List` or `Map` are unknown to the `alphanet.sh` script, so we'd
better not mention them.

Also, I removed `'` signs because they either make the expression
unrecognizable again, or are just extras.

Finally, I accindentially run automatic table alignment, so the diff
is a bit huge.
parent 9b8e9d74
......@@ -473,30 +473,30 @@ constructors.
Outer single quotes only required for passing literals through the command line.
(adapted from `https://www.michelson-lang.com/contract-a-day.html`)
| Type | Data |
|--------------------------|-------------------------------------------------------------|
| `unit` | `Unit` |
| `nat` | `12312321` |
| `int` | `12312321` |
| `int` | `'(-12223)'` |
| `string` | `'"hello"'` |
| `string` | `"\"hello\""` |
| `bool` | `True` |
| `bool` | `False` |
| `timestamp` | `10000` |
| `timestamp` | `'"2017-08-14T18:00:21Z"'` |
| `tez` | `'"100.00"'` |
| `(lambda unit unit)` | `{}` |
| `(lambda string string)` | `{PUSH string "hello"; CONCAT}` |
| `bytes` | `0x0001` |
| `key` | `"edpktieBMrR9Df3dqzZAJpDZBXb1h188fyrQyRJcm5RH2WpbvMVR8b"'` |
| `signature` | `"edsigtrs8bK7vNfiR4Kd9dWasVa1bAWaQSu2ipnmLGZuwQa8ktCEMYVKqbWsbJ7zTS8dgYT9tiSUKorWCPFHosL5zPsiDwBQ6vb"` |
| `key_hash` | `"tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU"'` |
| `(contract unit unit)` | `"tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU"'` |
| `(map nat bool)` | `(Map (Item 100 False) (Item 90 True))'` |
| `(set nat)` | `(Set 1 2 3 4')` |
| `(list int)` | `(List 1 -123 12312)` |
| `(option bool)` | `(Some False)` |
| `(option bool)` | `None` |
| `(or nat bool)` | `'(Left 100)'` |
| `(or nat bool)` | `'(Right False)'` |
| Type | Data |
|--------------------------|---------------------------------------------|
| `unit` | `Unit` |
| `nat` | `12312321` |
| `int` | `12312321` |
| `int` | `-12223` |
| `string` | `'"hello"'` |
| `string` | `'"\"hello\""'` |
| `bool` | `True` |
| `bool` | `False` |
| `timestamp` | `10000` |
| `timestamp` | `'"2017-08-14T18:00:21Z"'` |
| `mutez` | `100` |
| `(lambda unit unit)` | `{}` |
| `(lambda string string)` | `{PUSH string "hello"; CONCAT}` |
| `bytes` | `0x0001` |
| `key` | `'"edpktieBMrR9Df3dqzZAJpDZBXb1h188fyrQyRJcm5RH2WpbvMVR8b"'` |
| `signature` | `'"edsigtrs8bK7vNfiR4Kd9dWasVa1bAWaQSu2ipnmLGZuwQa8ktCEMYVKqbWsbJ7zTS8dgYT9tiSUKorWCPFHosL5zPsiDwBQ6vb"'` |
| `key_hash` | `'"tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU"'` |
| `(contract unit unit)` | `'"tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU"'` |
| `(map nat bool)` | `{Elt 1 False}` |
| `(set nat)` | `{1; 2; 3; 4}` |
| `(list int)` | `{1; -123; 12312}` |
| `(option bool)` | `(Some False)` |
| `(option bool)` | `None` |
| `(or nat bool)` | `(Left 100)` |
| `(or nat bool)` | `(Right False)` |
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment