Skip to content

Commit

Permalink
update content
Browse files Browse the repository at this point in the history
  • Loading branch information
jackleeio authored and 0xn1c0 committed Oct 9, 2024
1 parent 84101c5 commit b7e92c8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions docs/espace/tutorials/upgradableContract/uups.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit b7e92c8

Please sign in to comment.