From b7e92c8261d5dca0634e1321299f34460b7e8fd0 Mon Sep 17 00:00:00 2001 From: Jack Lee <280147597@qq.com> Date: Sun, 29 Sep 2024 22:23:13 +0800 Subject: [PATCH] update content --- docs/espace/tutorials/upgradableContract/uups.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/docs/espace/tutorials/upgradableContract/uups.md b/docs/espace/tutorials/upgradableContract/uups.md index b6343c4dcb..2c796d46e0 100644 --- a/docs/espace/tutorials/upgradableContract/uups.md +++ b/docs/espace/tutorials/upgradableContract/uups.md @@ -153,14 +153,7 @@ contract CounterV2 is UUPSUpgradeable, OwnableUpgradeable { // Initializes the contract, setting up ownership and upgrade capabilities // This function replaces the constructor and can only be called once due to the initializer modifier function initialize() public initializer { - // Initialize the Ownable module - // This function sets up the contract's ownership, making msg.sender the initial owner - // It's part of the OwnableUpgradeable contract from OpenZeppelin __Ownable_init(msg.sender); - - // Initialize the UUPSUpgradeable module - // This sets up the necessary state variables for the UUPS (Universal Upgradeable Proxy Standard) pattern - // It's part of the UUPSUpgradeable contract from OpenZeppelin __UUPSUpgradeable_init(); }