Skip to content

Instantly share code, notes, and snippets.

@saibakatar
Created October 18, 2018 07:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save saibakatar/8310754a24f6ca79535e14340516435b to your computer and use it in GitHub Desktop.
String Declaration in Scilla
contract Strings()
field a : String = "" (*declaring variable a with no value*)
field b : String = "hello" (*declaring variable b with a fixed value*)
transition update_value()
(*updating variable a*)
c = "hi"; (*declaring variable c with fixed value in the transition*)
a:= c;
(*updating variable b*)
d= "hello world";
e= d;
b:= e
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment