From 719a8f9d81d00d86fe3fc08ba136fd96e0f609a2 Mon Sep 17 00:00:00 2001 From: Frederik Rothenberger Date: Mon, 2 Sep 2024 10:15:03 +0200 Subject: [PATCH] Fix erroneous comments (#2581) The errors in the comments were introduced in #2578. --- src/frontend/src/storage/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/storage/index.ts b/src/frontend/src/storage/index.ts index 071fd2914c..7752a8ad54 100644 --- a/src/frontend/src/storage/index.ts +++ b/src/frontend/src/storage/index.ts @@ -351,7 +351,7 @@ const computePrincipalDigest = async ({ const principal = enc.encode(principal_); const principalLen = Uint8Array.from([principal_.length]); - // Create a buffer with all four elements + // Create a buffer with all elements const buff = concatUint8Arrays([principal, principalLen]); // Create the digest @@ -391,7 +391,7 @@ const computeOriginDigest = async ({ const origin = enc.encode(origin_); const originLen = Uint8Array.from([origin_.length]); - // Create a buffer with all four elements + // Create a buffer with all elements const buff = concatUint8Arrays([origin, originLen]); // Create the digest