Skip to content

Refactor: Move mocked revocation list #409

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,9 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;

contract T3RevocationRegistry {
contract MockedT3RevocationRegistry {
mapping(address => mapping(string => bool)) public revoked;

constructor() {}

function revoke(string memory vcId) public {
revoked[msg.sender][vcId] = true;
}
Expand Down
10 changes: 5 additions & 5 deletions contracts/test/unitTests/layer_1/kyc/kyc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ import {
IFactory,
BusinessLogicResolver,
SsiManagement,
T3RevocationRegistry,
T3RevocationRegistry__factory,
MockedT3RevocationRegistry,
MockedT3RevocationRegistry__factory,
TimeTravel,
} from '@typechain'
import {
Expand Down Expand Up @@ -257,7 +257,7 @@ describe('Kyc Tests', () => {
let kycFacet: Kyc
let pauseFacet: Pause
let ssiManagementFacet: SsiManagement
let revocationList: T3RevocationRegistry
let revocationList: MockedT3RevocationRegistry
let timeTravelFacet: TimeTravel

let currentTimestamp = 0
Expand Down Expand Up @@ -288,13 +288,13 @@ describe('Kyc Tests', () => {

const reovationListDeployed = await deployContractWithFactory(
new DeployContractWithFactoryCommand({
factory: new T3RevocationRegistry__factory(),
factory: new MockedT3RevocationRegistry__factory(),
signer: signer_A,
})
)

revocationList = await ethers.getContractAt(
'T3RevocationRegistry',
'MockedT3RevocationRegistry',
reovationListDeployed.address,
signer_C
)
Expand Down
10 changes: 5 additions & 5 deletions contracts/test/unitTests/layer_1/ssi/ssi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ import {
IFactory,
BusinessLogicResolver,
SsiManagement,
T3RevocationRegistry,
T3RevocationRegistry__factory,
MockedT3RevocationRegistry,
MockedT3RevocationRegistry__factory,
} from '@typechain'
import {
PAUSER_ROLE,
Expand Down Expand Up @@ -246,7 +246,7 @@ describe('SSI Tests', () => {
let businessLogicResolver: BusinessLogicResolver
let pauseFacet: Pause
let ssiManagementFacet: SsiManagement
let revocationList: T3RevocationRegistry
let revocationList: MockedT3RevocationRegistry

let snapshot: SnapshotRestorer

Expand All @@ -272,13 +272,13 @@ describe('SSI Tests', () => {

const reovationListDeployed = await deployContractWithFactory(
new DeployContractWithFactoryCommand({
factory: new T3RevocationRegistry__factory(),
factory: new MockedT3RevocationRegistry__factory(),
signer: signer_A,
})
)

revocationList = await ethers.getContractAt(
'T3RevocationRegistry',
'MockedT3RevocationRegistry',
reovationListDeployed.address,
signer_C
)
Expand Down