From 8e246c48bf34c7d72a5aba8a279002da9a6db501 Mon Sep 17 00:00:00 2001 From: Yumin Xia Date: Fri, 5 Apr 2024 12:21:59 -0700 Subject: [PATCH] fix: incorrect alias check brought from snarkjs. --- packages/contracts/contracts/base/SemaphoreVerifier.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contracts/contracts/base/SemaphoreVerifier.sol b/packages/contracts/contracts/base/SemaphoreVerifier.sol index a3793b037..beb31313f 100644 --- a/packages/contracts/contracts/base/SemaphoreVerifier.sol +++ b/packages/contracts/contracts/base/SemaphoreVerifier.sol @@ -241,7 +241,7 @@ contract SemaphoreVerifier { assembly { function checkField(v) { - if iszero(lt(v, q)) { + if iszero(lt(v, r)) { mstore(0, 0) return(0, 0x20) }