Skip to content

Commit

Permalink
Add sample program with syscall (#22)
Browse files Browse the repository at this point in the history
* Add example program with syscalls

* fix trunk
  • Loading branch information
ClementWalter authored Sep 11, 2024
1 parent 6e60c6f commit 3b80394
Show file tree
Hide file tree
Showing 2 changed files with 986 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cairo_programs/syscalls.cairo
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
%builtins syscall

from starkware.starknet.common.syscalls import get_block_number

func main{syscall_ptr : felt*}() {
let (block_number) = get_block_number();
%{ print(ids.block_number) %}
return ();
}
Loading

0 comments on commit 3b80394

Please sign in to comment.