Skip to content

Commit

Permalink
adjustmnets
Browse files Browse the repository at this point in the history
  • Loading branch information
mirooon committed Feb 13, 2025
1 parent e75b9c9 commit 406a20a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions test/solidity/Facets/AccessManagerFacet.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ contract AccessManagerFacetTest is TestBase {
setFacetAddressInTestBase(address(accessMgr), "AccessManagerFacet");
}

function test_AccessIsRestricted() public {
function test_AccessIsRestrictedFromNotOwner() public {
vm.startPrank(USER_SENDER);

vm.expectRevert(UnAuthorized.selector);

vm.prank(address(0xb33f));
restricted.restrictedMethod();
vm.stopPrank();
}

function test_CanGrantAccess() public {
Expand Down
2 changes: 1 addition & 1 deletion test/solidity/Facets/AcrossFacetPacked.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ contract AcrossFacetPackedTest is TestBase {
vm.stopPrank();
}

function testRevert_FailsIfCallToExternalContractFails() public {
function testRevert_FailIfCallToExternalContractFails() public {
vm.startPrank(USER_DIAMOND_OWNER);

MockFailingContract failingContract = new MockFailingContract();
Expand Down

0 comments on commit 406a20a

Please sign in to comment.