How Is the Upgrade Function Typically Triggered in a UUPS Contract?

In a UUPS contract, the upgrade function (e.g. upgradeTo ) is typically implemented in the logic contract, not the proxy. The proxy delegates the call to this function.

This function is secured by a role-based access control or an owner check, ensuring only the authorized admin can trigger the upgrade, which points the proxy to a new logic contract address.

What Is the Difference between a Transparent Proxy and a UUPS Proxy?
What Is the Difference between ‘Last Look’ and ‘Pre-Trade Credit Check’ in Derivatives Trading?
Does the Proxy Pattern Affect the Cost of Contract Deployment?
How Does a Proxy Vote Function in DPoS?
Can Gas Optimizations in the Logic Contract Offset the Proxy’s Overhead?
What Is a Proxy Pattern in the Context of Smart Contract Mutability?
What Happens If the Implementation Contract in a UUPS Setup Is Destroyed?
What Is the Role of a Proxy Contract in Maintaining Upgradability?

Glossar