Skip to content

Commit

Permalink
fixed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
satyajeetkolhapure committed Nov 26, 2024
1 parent d5e6353 commit 63f2dc7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contracts/src/PortalRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ contract PortalRegistry is OwnableUpgradeable {
* @param description the portal description
* @param ownerName name of this portal's owner
*/
function deployDefaultPortalV2(
function deployDefaultPortal(
address[] calldata modules,
string calldata name,
string calldata description,
Expand Down
8 changes: 4 additions & 4 deletions contracts/test/PortalRegistry.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -294,21 +294,21 @@ contract PortalRegistryTest is Test {
portalRegistry.revoke(makeAddr("randomAddress"));
}

function test_deployDefaultPortalV2() public {
function test_deployDefaultPortal() public {
CorrectModuleV2 correctModule = new CorrectModuleV2();
address[] memory modules = new address[](1);
modules[0] = address(correctModule);
vm.prank(user);
portalRegistry.deployDefaultPortalV2(modules, expectedName, expectedDescription, true, expectedOwnerName);
portalRegistry.deployDefaultPortal(modules, expectedName, expectedDescription, true, expectedOwnerName);
}

function test_deployDefaultPortalV2_OnlyAllowlisted() public {
function test_deployDefaultPortal_OnlyAllowlisted() public {
CorrectModuleV2 correctModule = new CorrectModuleV2();
address[] memory modules = new address[](1);
modules[0] = address(correctModule);
vm.expectRevert(PortalRegistry.OnlyAllowlisted.selector);
vm.prank(makeAddr("InvalidUser"));
portalRegistry.deployDefaultPortalV2(modules, expectedName, expectedDescription, true, expectedOwnerName);
portalRegistry.deployDefaultPortal(modules, expectedName, expectedDescription, true, expectedOwnerName);
}

function test_getPortals_PortalNotRegistered() public {
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/integration/IssuersPortal.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ contract IssuersPortalTest is Test {
modules[1] = address(issuersModule);

vm.recordLogs();
portalRegistry.deployDefaultPortalV2(modules, "IssuersPortal", "IssuersPortal description", true, "Verax");
portalRegistry.deployDefaultPortal(modules, "IssuersPortal", "IssuersPortal description", true, "Verax");
Vm.Log[] memory entries = vm.getRecordedLogs();

// Get the address of the Portal that was just deployed and registered
Expand Down

0 comments on commit 63f2dc7

Please sign in to comment.