Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejka committed Dec 23, 2024
1 parent 195f329 commit 49e87c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions l2/src/bridge.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ pub mod Bridge {
}

fn close_batch(ref self: ContractState) {
// TODO: how this should be restricted?

let root = self.root();
let id = self.batch.id.read();

Expand Down Expand Up @@ -139,9 +141,8 @@ pub mod Bridge {

#[generate_trait]
pub impl InternalImpl of InternalTrait {
const TREE_HEIGHT: u8 = 10;
const TREE_MAX_SIZE: u16 = 1024; //pow2(TREE_HEIGHT)!

const TREE_HEIGHT: u8 = 10;
const TREE_MAX_SIZE: u16 = 1024; //pow2(TREE_HEIGHT)!
// TODO: how to enforce ZERO_HASHES.len() == TREE_HEIGHT?
// calculated with print_zero_hashes below
#[cairofmt::skip]
Expand Down Expand Up @@ -387,5 +388,4 @@ mod bridge_tests {
cheat_caller_address(bridge.contract_address, admin_address, CheatSpan::TargetCalls(1));
bridge.close_batch();
}

}

0 comments on commit 49e87c8

Please sign in to comment.