Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
fmkra committed May 24, 2024
1 parent 56c0524 commit b6eee69
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/core/headers_store.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,7 @@ mod HeadersStore {
let mmr = self.mmr.read(mmr_id);
assert(mmr.root != 0, 'MMR_NOT_FOUND');

mmr
.verify_proof(index, poseidon_blockhash, peaks, proof)
.expect('INVALID_MMR_PROOF')
mmr.verify_proof(index, poseidon_blockhash, peaks, proof).expect('INVALID_MMR_PROOF')
}

// @inheritdoc IHeadersStore
Expand All @@ -462,9 +460,7 @@ mod HeadersStore {

let mmr = MMRTrait::new(root, last_pos);

mmr
.verify_proof(index, poseidon_blockhash, peaks, proof)
.expect('INVALID_MMR_PROOF')
mmr.verify_proof(index, poseidon_blockhash, peaks, proof).expect('INVALID_MMR_PROOF')
}

// @inheritdoc IHeadersStore
Expand Down Expand Up @@ -519,9 +515,7 @@ mod HeadersStore {
);

let mut mmr: MMR = Default::default();
mmr
.append(initial_poseidon_blockhash, array![].span())
.expect('MMR_APPEND_FAILED');
mmr.append(initial_poseidon_blockhash, array![].span()).expect('MMR_APPEND_FAILED');

let new_root = mmr.root;
let new_last_pos = mmr.last_pos;
Expand Down

0 comments on commit b6eee69

Please sign in to comment.