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 e7aa437
Show file tree
Hide file tree
Showing 2 changed files with 1,301 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cairo_programs/syscalls.cairo
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
%builtins syscall pedersen range_check

from starkware.cairo.common.cairo_builtins import HashBuiltin
from starkware.starknet.common.syscalls import get_block_number

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

0 comments on commit e7aa437

Please sign in to comment.