Skip to main content

Welcome!

In this first exercise, the storage is a single string value, initialised to ""; the unique entry point is called to set the value of str

Assign value

Use the assignment instruction := to assign a value to str.

1-hello.arl
archetype hello

variable str : string = ""

entry main () {
str := "Hello Tezos world!"
}
info

Do not forget to save the file with Ctrl+s (or Cmd+s)

Deploy

Change directory to the tutorial directory:

cd tutorial

The following Completium CLI command deploys the contract (in mockup mode here):

completium-cli deploy 1-hello.arl

Check storage

Check that storage is an empty string (initial value of str value)

completium-cli show storage 1-hello

Call entry point

Call the entry point main:

completium-cli call 1-hello --entry main

View contract

Check that storage is now "Hello Tezos world!"

completium-cli show storage 1-hello

Next

Click "Next: Executions conditions" below.