From 1c6330256dfacfa2c638be5bb3e246af5249525d Mon Sep 17 00:00:00 2001 From: TokenTitan Date: Wed, 30 Oct 2024 18:48:11 +0530 Subject: [PATCH] refactor: disburser and default admin role granted to owner --- src/utilities/KITNDisbursalContract.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utilities/KITNDisbursalContract.sol b/src/utilities/KITNDisbursalContract.sol index 83fa82f..23eebae 100644 --- a/src/utilities/KITNDisbursalContract.sol +++ b/src/utilities/KITNDisbursalContract.sol @@ -20,8 +20,8 @@ contract KITNDisbursalContract is AccessControl { // Constructor sets the deploying address as the default admin of the contract constructor(address _kitnAddress, address _owner) { - _grantRole(DEFAULT_ADMIN_ROLE, _msgSender()); - _grantRole(DISBURSER, _msgSender()); + _grantRole(DEFAULT_ADMIN_ROLE, _owner); + _grantRole(DISBURSER, _owner); kitnToken = IERC20(_kitnAddress); owner = _owner;