Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

IUpgradeableProxy

Functions

upgradeTo

Upgrades the proxy to a new implementation without calling a function on the new implementation.

function upgradeTo(address) external;

upgradeToAndCall

Upgrades the proxy to a new implementation and calls a function on the new implementation. If UPGRADE_INTERFACE_VERSION is "5.0.0", bytes can be empty if no function should be called on the new implementation.

function upgradeToAndCall(address, bytes memory) external payable;