Pārlūkot izejas kodu

Document the non-zero delay enforcement in AccessControlDefaultAdminRules (#5687)

Co-authored-by: Ernesto García <ernestognw@gmail.com>
qedk 4 mēneši atpakaļ
vecāks
revīzija
ccde353a20

+ 1 - 0
contracts/access/extensions/AccessControlDefaultAdminRules.sol

@@ -24,6 +24,7 @@ import {IERC165} from "../../utils/introspection/ERC165.sol";
  * * Enforces a 2-step process to transfer the `DEFAULT_ADMIN_ROLE` to another account.
  * * Enforces a configurable delay between the two steps, with the ability to cancel before the transfer is accepted.
  * * The delay can be changed by scheduling, see {changeDefaultAdminDelay}.
+ * * Role transfers must wait at least one block after scheduling before it can be accepted.
  * * It is not possible to use another role to manage the `DEFAULT_ADMIN_ROLE`.
  *
  * Example usage: