Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ssi test #263

Merged
merged 7 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions contracts/contracts/layer_1/interfaces/ssi/ISSIManagement.sol
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,17 @@ interface ISSIManagement {
error UnlistedIssuer(address issuer);
error AccountIsNotIssuer(address issuer);

/**
* @dev Emitted when the revocation registry address is updated
*
* @param oldRegistryAddress previous revocation list address
* @param newRegistryAddress new revocation list address
*/
event RevocationRegistryUpdated(
address indexed oldRegistryAddress,
address indexed newRegistryAddress
);

/**
* @dev Emitted when an issuer is added to the issuerlist
*
Expand Down
5 changes: 5 additions & 0 deletions contracts/contracts/layer_1/ssi/SSIManagement.sol
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,12 @@ contract SSIManagement is
onlyUnpaused
returns (bool success_)
{
address oldRevocationRegistryAddress = _getRevocationRegistryAddress();
success_ = _setRevocationRegistryAddress(_revocationRegistryAddress);
emit RevocationRegistryUpdated(
oldRevocationRegistryAddress,
_getRevocationRegistryAddress()
);
}

function addIssuer(
Expand Down
1 change: 1 addition & 0 deletions contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"test:accessControl": "npx hardhat test test/unitTests/layer_1/accessControl/accessControl.test.ts",
"test:controlList": "npx hardhat test test/unitTests/layer_1/controlList/controlList.test.ts",
"test:kyc": "npx hardhat test test/unitTests/layer_1/kyc/kyc.test.ts",
"test:ssi": "npx hardhat test test/unitTests/layer_1/ssi/ssi.test.ts",
"test:pause": "npx hardhat test test/unitTests/layer_1/pause/pause.test.ts",
"test:corporateActions": "npx hardhat test test/unitTests/layer_2/corporateActions/corporateActions.test.ts",
"test:erc1643": "npx hardhat test test/unitTests/layer_1/ERC1400/ERC1643/erc1643.test.ts",
Expand Down
Loading
Loading