Skip to content

Commit

Permalink
fix: scarb fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hudem1 authored and julio4 committed Oct 1, 2024
1 parent acbb2df commit c465a5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions listings/applications/merkle_tree/src/contract.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ pub mod MerkleTree {
use core::poseidon::PoseidonTrait;
use core::hash::{HashStateTrait, HashStateExTrait};
use starknet::storage::{
StoragePointerWriteAccess, StoragePointerReadAccess,
Vec, MutableVecTrait, VecTrait
StoragePointerWriteAccess, StoragePointerReadAccess, Vec, MutableVecTrait, VecTrait
};
use super::ByteArrayHashTrait;

Expand Down
8 changes: 5 additions & 3 deletions listings/applications/merkle_tree/src/tests.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ fn build_tree_succeeds() {

assert_eq!(state.hashes.len(), expected_hashes.len().into());

for i in 0..expected_hashes.len() {
assert_eq!(state.hashes.at(i.into()).read(), *expected_hashes.at(i));
}
for i in 0
..expected_hashes
.len() {
assert_eq!(state.hashes.at(i.into()).read(), *expected_hashes.at(i));
}
}

#[test]
Expand Down

0 comments on commit c465a5c

Please sign in to comment.