Skip to content

Commit

Permalink
Add example program with syscalls
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter committed Sep 10, 2024
1 parent 6e60c6f commit 3514bca
Show file tree
Hide file tree
Showing 2 changed files with 991 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 3514bca

Please sign in to comment.