Skip to content

Commit bf4a284

Browse files
committed
reset
1 parent 32fe6f4 commit bf4a284

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// SPDX-License-Identifier: MIT
2+
3+
pragma solidity ^0.8.20;
4+
5+
import {AccessManager} from "../access/manager/AccessManager.sol";
6+
7+
contract AccessManagerMock is AccessManager {
8+
event CalledRestricted(address caller);
9+
event CalledUnrestricted(address caller);
10+
11+
constructor(address initialAdmin) AccessManager(initialAdmin) {}
12+
13+
function fnRestricted() public onlyAuthorized {
14+
emit CalledRestricted(msg.sender);
15+
}
16+
17+
function fnUnrestricted() public {
18+
emit CalledUnrestricted(msg.sender);
19+
}
20+
}

0 commit comments

Comments
 (0)