Skip to content

Commit

Permalink
Grant DEFAULT_ADMIN_ROLE on StakeInfo to the deployer
Browse files Browse the repository at this point in the history
This way they can grant/revoke updaters, which is useful for testnets, and the admin can revoke themselves if the updaters list is considered final.
  • Loading branch information
cygnusv committed Jul 25, 2023
1 parent ee08414 commit 2549f73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/contracts/coordination/StakeInfo.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ contract StakeInfo is AccessControl, IUpdatableStakeInfo, IAccessControlApplicat
}

constructor(address[] memory updaters){
_grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
for(uint i = 0; i < updaters.length; i++){
_grantRole(UPDATE_ROLE, updaters[i]);
}
Expand Down

0 comments on commit 2549f73

Please sign in to comment.