From 26eecd47f5783b32a42890ccdb19ed265f35aed6 Mon Sep 17 00:00:00 2001 From: alongdate Date: Fri, 19 Apr 2024 16:08:48 +0800 Subject: [PATCH] chore: fix some typos in comments Signed-off-by: alongdate --- .../templates/hashchecker/templates/plonk_verifier.sol.ejs | 6 +++--- .../src/templates/rln/templates/plonk_verifier.sol.ejs | 6 +++--- .../templates/semaphore/templates/plonk_verifier.sol.ejs | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libs/remix-ws-templates/src/templates/hashchecker/templates/plonk_verifier.sol.ejs b/libs/remix-ws-templates/src/templates/hashchecker/templates/plonk_verifier.sol.ejs index da3f145b53..8b3ed1d109 100644 --- a/libs/remix-ws-templates/src/templates/hashchecker/templates/plonk_verifier.sol.ejs +++ b/libs/remix-ws-templates/src/templates/hashchecker/templates/plonk_verifier.sol.ejs @@ -158,7 +158,7 @@ contract PlonkVerifier { let pAux := mload(0x40) // Point to the next free position let pIn := pVals - let lastPIn := add(pVals, mul(n, 32)) // Read n elemnts + let lastPIn := add(pVals, mul(n, 32)) // Read n elements let acc := mload(pIn) // Read the first element pIn := add(pIn, 32) // Point to the second element let inv @@ -174,9 +174,9 @@ contract PlonkVerifier { } acc := inverse(acc, q) - // At this point pAux pint to the next free position we substract 1 to point to the last used + // At this point pAux pint to the next free position we subtract 1 to point to the last used pAux := sub(pAux, 32) - // pIn points to the n+1 element, we substract to point to n + // pIn points to the n+1 element, we subtract to point to n pIn := sub(pIn, 32) lastPIn := pVals // We don't process the first element for { } gt(pIn, lastPIn) { diff --git a/libs/remix-ws-templates/src/templates/rln/templates/plonk_verifier.sol.ejs b/libs/remix-ws-templates/src/templates/rln/templates/plonk_verifier.sol.ejs index da3f145b53..8b3ed1d109 100644 --- a/libs/remix-ws-templates/src/templates/rln/templates/plonk_verifier.sol.ejs +++ b/libs/remix-ws-templates/src/templates/rln/templates/plonk_verifier.sol.ejs @@ -158,7 +158,7 @@ contract PlonkVerifier { let pAux := mload(0x40) // Point to the next free position let pIn := pVals - let lastPIn := add(pVals, mul(n, 32)) // Read n elemnts + let lastPIn := add(pVals, mul(n, 32)) // Read n elements let acc := mload(pIn) // Read the first element pIn := add(pIn, 32) // Point to the second element let inv @@ -174,9 +174,9 @@ contract PlonkVerifier { } acc := inverse(acc, q) - // At this point pAux pint to the next free position we substract 1 to point to the last used + // At this point pAux pint to the next free position we subtract 1 to point to the last used pAux := sub(pAux, 32) - // pIn points to the n+1 element, we substract to point to n + // pIn points to the n+1 element, we subtract to point to n pIn := sub(pIn, 32) lastPIn := pVals // We don't process the first element for { } gt(pIn, lastPIn) { diff --git a/libs/remix-ws-templates/src/templates/semaphore/templates/plonk_verifier.sol.ejs b/libs/remix-ws-templates/src/templates/semaphore/templates/plonk_verifier.sol.ejs index da3f145b53..8b3ed1d109 100644 --- a/libs/remix-ws-templates/src/templates/semaphore/templates/plonk_verifier.sol.ejs +++ b/libs/remix-ws-templates/src/templates/semaphore/templates/plonk_verifier.sol.ejs @@ -158,7 +158,7 @@ contract PlonkVerifier { let pAux := mload(0x40) // Point to the next free position let pIn := pVals - let lastPIn := add(pVals, mul(n, 32)) // Read n elemnts + let lastPIn := add(pVals, mul(n, 32)) // Read n elements let acc := mload(pIn) // Read the first element pIn := add(pIn, 32) // Point to the second element let inv @@ -174,9 +174,9 @@ contract PlonkVerifier { } acc := inverse(acc, q) - // At this point pAux pint to the next free position we substract 1 to point to the last used + // At this point pAux pint to the next free position we subtract 1 to point to the last used pAux := sub(pAux, 32) - // pIn points to the n+1 element, we substract to point to n + // pIn points to the n+1 element, we subtract to point to n pIn := sub(pIn, 32) lastPIn := pVals // We don't process the first element for { } gt(pIn, lastPIn) {