Skip to content

Commit

Permalink
add setState to CredentialAtomicQueryValidator (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk authored Nov 21, 2023
1 parent 888cc45 commit 0fd9996
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 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.3.4",
"version": "1.3.5",
"files": [
"**/*.sol",
"/build/contracts/*.json",
Expand Down
2 changes: 1 addition & 1 deletion contracts/validators/CredentialAtomicQueryMTPValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ contract CredentialAtomicQueryMTPValidator is CredentialAtomicQueryValidator {
/**
* @dev Version of contract
*/
string public constant VERSION = "1.0.0";
string public constant VERSION = "1.0.1";

string internal constant CIRCUIT_ID = "credentialAtomicQueryMTPV2OnChain";

Expand Down
2 changes: 1 addition & 1 deletion contracts/validators/CredentialAtomicQuerySigValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ contract CredentialAtomicQuerySigValidator is CredentialAtomicQueryValidator {
/**
* @dev Version of contract
*/
string public constant VERSION = "1.0.0";
string public constant VERSION = "1.0.1";

string internal constant CIRCUIT_ID = "credentialAtomicQuerySigV2OnChain";

Expand Down
4 changes: 4 additions & 0 deletions contracts/validators/CredentialAtomicQueryValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ abstract contract CredentialAtomicQueryValidator is OwnableUpgradeable, ICircuit
gistRootExpirationTimeout = expirationTimeout;
}

function setStateAddress(address stateContractAddr) public virtual onlyOwner {
state = IState(stateContractAddr);
}

function getSupportedCircuitIds() external view virtual returns (string[] memory ids) {
return _supportedCircuitIds;
}
Expand Down

0 comments on commit 0fd9996

Please sign in to comment.