From d2ef1d7a8e26bd6f6d6fce0b6736a384b986d852 Mon Sep 17 00:00:00 2001 From: Aleksandar Marinkovic Date: Tue, 24 Dec 2024 12:12:17 +0100 Subject: [PATCH] fix: stop using deprecated role const --- src/facets/ZapFacet.sol | 2 +- src/libs/LibInitDiamond.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/facets/ZapFacet.sol b/src/facets/ZapFacet.sol index bac968aa..dc92738c 100644 --- a/src/facets/ZapFacet.sol +++ b/src/facets/ZapFacet.sol @@ -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) { diff --git a/src/libs/LibInitDiamond.sol b/src/libs/LibInitDiamond.sol index 963fe383..45a641fb 100644 --- a/src/libs/LibInitDiamond.sol +++ b/src/libs/LibInitDiamond.sol @@ -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