Created
October 18, 2018 07:03
-
-
Save saibakatar/8310754a24f6ca79535e14340516435b to your computer and use it in GitHub Desktop.
String Declaration in Scilla
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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