From 82f7ed2db9aec36e41ce8e250718f5131cd14d97 Mon Sep 17 00:00:00 2001 From: miguelmtzinf Date: Thu, 23 May 2024 15:39:50 +0200 Subject: [PATCH] fix: Replace deprecated function call to grant role --- src/contracts/gho/UpgradeableGhoToken.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contracts/gho/UpgradeableGhoToken.sol b/src/contracts/gho/UpgradeableGhoToken.sol index 4c32280e..22c9bc0f 100644 --- a/src/contracts/gho/UpgradeableGhoToken.sol +++ b/src/contracts/gho/UpgradeableGhoToken.sol @@ -37,7 +37,7 @@ contract UpgradeableGhoToken is VersionedInitializable, UpgradeableERC20, Access function initialize(address admin) public virtual initializer { _ERC20_init('Gho Token', 'GHO'); - _setupRole(DEFAULT_ADMIN_ROLE, admin); + _grantRole(DEFAULT_ADMIN_ROLE, admin); } /// @inheritdoc IGhoToken