Skip to content

Commit

Permalink
long names for args
Browse files Browse the repository at this point in the history
  • Loading branch information
byteZorvin committed Sep 10, 2024
1 parent 986b0f2 commit 69b006c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ run: compile
@echo "Running Successfull !!"

run_bootloader: compile
cargo run -- -c $(COMPILED_OUTPUT) -u $(PUBLIC_INPUT) -p $(PRIVATE_INPUT) -m $(MEMORY_FILE) -t $(TRACE_FILE)
cargo run -- \
--compiled-program $(COMPILED_OUTPUT) \
--air-public-input $(PUBLIC_INPUT) \
--air-private-input $(PRIVATE_INPUT) \
--memory-file $(MEMORY_FILE) \
--trace $(TRACE_FILE)
node format.js $(PUBLIC_INPUT)
@echo "Running with bootloader Successfull !!"

Expand Down
18 changes: 9 additions & 9 deletions examples/dummy_snos/dummy_snos.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ func main(output_ptr: felt*) -> (output_ptr: felt*) {
let da_start = output_ptr;

%{
onchain_data_start = ids.da_start
max_page_size=1
for i in range(4):
start_offset = i * max_page_size
output_builtin.add_page(
page_id=1 + i,
page_start=onchain_data_start + start_offset + 1,
page_size=max_page_size
)
// onchain_data_start = ids.da_start
// max_page_size=1
// for i in range(4):
// start_offset = i * max_page_size
// output_builtin.add_page(
// page_id=1 + i,
// page_start=onchain_data_start + start_offset + 1,
// page_size=max_page_size
// )
# Set the tree structure to a root with two children:
# * A leaf which represents the main part
Expand Down

0 comments on commit 69b006c

Please sign in to comment.