Permissions.sol#_swapRole is named wrongly #290
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
0x0x0x
Vulnerability details
Concept
This function is used intensively to transfer roles. Swap role is a misleading naming for this function. It is transferring a role rather than swapping. I recommend changing the name to
_transferRole
to avoid creating any confusion.The text was updated successfully, but these errors were encountered: