Skip to content

Commit d2ef1d7

Browse files
committed
fix: stop using deprecated role const
1 parent 12df9b9 commit d2ef1d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/facets/ZapFacet.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ contract ZapFacet is Modifiers, ReentrancyGuard {
7979

8080
bytes32 parentId = _onboardingApproval.entityId;
8181

82-
bool isOnboardingCP = _onboardingApproval.roleId == LibHelpers._stringToBytes32(LC.ROLE_CAPITAL_PROVIDER);
82+
bool isOnboardingCP = _onboardingApproval.roleId == LibHelpers._stringToBytes32(LC.ROLE_ENTITY_CP);
8383
bool isCurrentlyCP = LibACL._isInGroup(parentId, LibHelpers._stringToBytes32(LC.SYSTEM_IDENTIFIER), LibHelpers._stringToBytes32(LC.GROUP_CAPITAL_PROVIDERS));
8484

8585
if (!isCurrentlyCP && isOnboardingCP) {

src/libs/LibInitDiamond.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ library LibInitDiamond {
6363
// setup stakeholder groups
6464
LibACL._updateRoleGroup(LC.ROLE_UNDERWRITER, LC.GROUP_UNDERWRITERS, true);
6565
LibACL._updateRoleGroup(LC.ROLE_BROKER, LC.GROUP_BROKERS, true);
66-
LibACL._updateRoleGroup(LC.ROLE_CAPITAL_PROVIDER, LC.GROUP_CAPITAL_PROVIDERS, true);
66+
LibACL._updateRoleGroup(LC.ROLE_ENTITY_CP, LC.GROUP_CAPITAL_PROVIDERS, true);
6767
LibACL._updateRoleGroup(LC.ROLE_INSURED_PARTY, LC.GROUP_INSURED_PARTIES, true);
6868

6969
// setup assigners

0 commit comments

Comments
 (0)