Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
petscheit committed Apr 25, 2024
1 parent dfb453f commit 443d065
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions tests/fuzzing/mpt.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,24 @@ from starkware.cairo.common.registers import get_fp_and_pc
from lib.utils import pow2alloc128
from lib.mpt import verify_mpt_proof


func main{
output_ptr: felt*, range_check_ptr, bitwise_ptr: BitwiseBuiltin*, keccak_ptr: KeccakBuiltin*
}() {
alloc_locals;
local batch_len: felt;

%{
ids.batch_len = len(program_input)
%}
%{ ids.batch_len = len(program_input) %}

let (pow2_array: felt*) = pow2alloc128();

verify_n_mpt_proofs{
range_check_ptr=range_check_ptr, bitwise_ptr=bitwise_ptr, keccak_ptr=keccak_ptr, pow2_array=pow2_array
range_check_ptr=range_check_ptr,
bitwise_ptr=bitwise_ptr,
keccak_ptr=keccak_ptr,
pow2_array=pow2_array,
}(batch_len, 0);

return ();

}

func verify_n_mpt_proofs{
Expand Down Expand Up @@ -87,10 +86,9 @@ func verify_n_mpt_proofs{
(key_low, key_high) = reverse_key(batch["key"])
ids.key.low = key_low
ids.key.high = key_high
%}

let (_,_) = verify_mpt_proof(
let (_, _) = verify_mpt_proof(
mpt_proof=proof,
mpt_proof_bytes_len=proof_bytes_len,
mpt_proof_len=proof_len,
Expand All @@ -102,5 +100,4 @@ func verify_n_mpt_proofs{
);

return verify_n_mpt_proofs(batch_len, index + 1);

}
}
2 changes: 1 addition & 1 deletion tools/make/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ process_cairo_file() {
export -f process_cairo_file

# Use --halt now,fail=1 to return non-zero if any task fails
find ./lib ./tests/cairo_programs -name "*.cairo" | parallel --halt now,fail=1 process_cairo_file
find ./lib ./tests.fuzzing ./tests/cairo_programs -name "*.cairo" | parallel --halt now,fail=1 process_cairo_file

# Capture the exit status of parallel
exit_status=$?
Expand Down

0 comments on commit 443d065

Please sign in to comment.