Skip to content

Instantly share code, notes, and snippets.

@saibakatar
saibakatar / gist:8c96ec556143871cf0727fc4d8f9eeaf
Created October 18, 2018 06:59
Signed Integer declaration for Scilla
contract Int()
field a: Option Int32 = None {Int32} (*declaring variable a with no value*)
field b: Int32 = Int32 5 (*declaring variable b with a fixed value*)
transition update_value()
(*updating variable a*)
c = Int32 6; (*declaring variable c with fixed value in the transition*)
tmp = Some {Int32} c;