Skip to content

Commit

Permalink
revert changes in custom_hint/custom_hint.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoGiachetta committed Jan 2, 2025
1 parent d4af5c1 commit a53d17a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 2 additions & 5 deletions examples/custom_hint/custom_hint.cairo
Original file line number Diff line number Diff line change
@@ -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 ();
}
7 changes: 7 additions & 0 deletions test.cairo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fn get_value() -> @Array<felt252> {
@array![1, 2, 3]
}

fn main() -> @Array<felt252> {
get_value()
}

0 comments on commit a53d17a

Please sign in to comment.