From 214f095c981c5d7fd1cda680d1bdcf1c6b048bf8 Mon Sep 17 00:00:00 2001 From: Alex Kuzmin Date: Thu, 14 Mar 2024 18:25:41 +0800 Subject: [PATCH] Fix the number of points calculation --- backend/examples/summa_solvency_flow.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/examples/summa_solvency_flow.rs b/backend/examples/summa_solvency_flow.rs index c4b34453..8c403ba8 100644 --- a/backend/examples/summa_solvency_flow.rs +++ b/backend/examples/summa_solvency_flow.rs @@ -142,7 +142,7 @@ async fn main() -> Result<(), Box> { 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;