Skip to content

Commit

Permalink
fix _checkVerifierID for 0 queryVerifierID
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Dec 19, 2023
1 parent 7da7be4 commit aa124a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@iden3/contracts",
"description": "Smart Contract library for Solidity",
"version": "1.4.0",
"version": "1.4.1",
"files": [
"**/*.sol",
"/build/contracts/*.json",
Expand Down
5 changes: 4 additions & 1 deletion contracts/validators/CredentialAtomicQueryV3Validator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ contract CredentialAtomicQueryV3Validator is CredentialAtomicQueryValidator {
}

function _checkVerifierID(uint256 queryVerifierID, uint256 pubSignalVerifierID) internal pure {
require(queryVerifierID == pubSignalVerifierID, "Verifier ID should match the query");
require(
queryVerifierID == 0 || queryVerifierID == pubSignalVerifierID,
"Verifier ID should match the query"
);
}

function _checkNullifierSessionID(
Expand Down

0 comments on commit aa124a9

Please sign in to comment.