diff --git a/examples/custom_hint/custom_hint.cairo b/examples/custom_hint/custom_hint.cairo index 745b3e45fb..30a6073876 100644 --- a/examples/custom_hint/custom_hint.cairo +++ b/examples/custom_hint/custom_hint.cairo @@ -1,9 +1,6 @@ func main() { - alloc_locals; - local tmp = 3; - let a = 17 - tmp; - + let a = 17; + // Use custom hint to print the value of a %{ print(ids.a) %} - return (); } diff --git a/test.cairo b/test.cairo new file mode 100644 index 0000000000..eb078da9b3 --- /dev/null +++ b/test.cairo @@ -0,0 +1,7 @@ +fn get_value() -> @Array { + @array![1, 2, 3] +} + +fn main() -> @Array { + get_value() +}