Skip to content

Commit

Permalink
fix: stop using deprecated role const
Browse files Browse the repository at this point in the history
  • Loading branch information
amarinkovic committed Dec 30, 2024
1 parent 12df9b9 commit d2ef1d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/facets/ZapFacet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ contract ZapFacet is Modifiers, ReentrancyGuard {

bytes32 parentId = _onboardingApproval.entityId;

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

if (!isCurrentlyCP && isOnboardingCP) {
Expand Down
2 changes: 1 addition & 1 deletion src/libs/LibInitDiamond.sol
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ library LibInitDiamond {
// setup stakeholder groups
LibACL._updateRoleGroup(LC.ROLE_UNDERWRITER, LC.GROUP_UNDERWRITERS, true);
LibACL._updateRoleGroup(LC.ROLE_BROKER, LC.GROUP_BROKERS, true);
LibACL._updateRoleGroup(LC.ROLE_CAPITAL_PROVIDER, LC.GROUP_CAPITAL_PROVIDERS, true);
LibACL._updateRoleGroup(LC.ROLE_ENTITY_CP, LC.GROUP_CAPITAL_PROVIDERS, true);
LibACL._updateRoleGroup(LC.ROLE_INSURED_PARTY, LC.GROUP_INSURED_PARTIES, true);

// setup assigners
Expand Down

0 comments on commit d2ef1d7

Please sign in to comment.