Commit 716ad403 authored by John Burnham's avatar John Burnham

Merge branch 'improve-first-tutorial' into 'master'

Improve first tutorial

See merge request !4
parents c8c6e007 b1482ce0
......@@ -409,10 +409,10 @@ constructors.
## Exercises for the reader
1. Modify our `helloTezos.tz` file to output `"Hello World!"` instead of `"Hello
Tezos!"`. Call this file `helloWorld.tz`
2. Now modify our `helloTezos.tz` file to take a string argument as input and output
`"Hello <input>".` Call this file `helloInput.tz`
1. Copy the contents of `helloTezos.tz` to a new file `helloWorld.tz`, and modify it to output `"Hello World!"` instead of `"Hello Tezos!"`.
2. Copy the contents of `helloTezos.tz` to a new file `helloInput.tz`, and modify it to take a string argument as input and output
`"Hello <input>".`.
You will need to know two additional operations to do this:
```
......@@ -429,13 +429,13 @@ constructors.
a ^ b concatenates the end of a to the beginning of b
```
3. Do the same thing as exercise 2, except now the contract takes a unit as
3. In a new file `helloStorage.tz`, do the same thing as exercise 2, except now the contract takes a unit as
its input parameter, and outputs `"Hello "` concatenated to its initial
storage. So running
`$./alphanet.sh client run script container:hellotezos.tz on storage '"bar"' and input 'Unit'`
`$./alphanet.sh client run script container:helloStorage.tz on storage '"bar"' and input 'Unit'`
should output "Hello bar". Call this file `helloStorage.tz`
should output "Hello bar".
You will need to know one additional operation:
```
......@@ -444,8 +444,8 @@ constructors.
type pair 'a 'b : 'A -> 'b : 'A
```
4. Write a contract that concatenates an input string and a storage string and
ouputs `"Hello <input><storage>"`. call this file `helloInputAndStorage.tz`
4. In a new file `helloInputAndStorage.tz`, write a contract that concatenates an input string and a storage string and
ouputs `"Hello <input><storage>"`.
You will need to know:
```
......
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