Skip to content

Commit

Permalink
docs: add extra comment for calling overriden _initialize function …
Browse files Browse the repository at this point in the history
…in child contract.
  • Loading branch information
CJ42 committed Oct 7, 2024
1 parent 072261d commit 1047659
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions implementations/contracts/ERC725InitAbstract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ abstract contract ERC725InitAbstract is
* NOTE: we can safely override this function and not call the parent `_initialize(...)` functions from `ERC725XInitAbstract` and `ERC725YInitAbstract`
* as the code logic from this `_initialize(...)` is the exactly the same.
*
* @custom:warning If a child contract that inherits `ERC725InitAbstract` needs to override the logic of the `_initialize` function, make sure it calls
* also this function inside this logic via `super._initialize(initialOwner)` or `ERC725InitAbstract._initialize(initialOwner)`.
*
* @custom:requirements
* - `initialOwner` CANNOT be the zero address.
*/
Expand Down

0 comments on commit 1047659

Please sign in to comment.