Skip to content

Commit

Permalink
Fix the number of points calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
alxkzmn committed Mar 14, 2024
1 parent 0eb8674 commit 214f095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/examples/summa_solvency_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
let commitment = summa_contract.commitments(snapshot_time).call().await?;

// Ensure the length of the commitment matches the expected size for the number of points.
assert_eq!(commitment.to_vec().len(), 0x40 * (N_CURRENCIES - 1));
assert_eq!(commitment.to_vec().len(), 0x40 * (N_CURRENCIES + 1));

// Validate the inclusion proof using the contract verifier.
let mut verification_result = false;
Expand Down

0 comments on commit 214f095

Please sign in to comment.