Skip to main content

DelegateCall

Definition

DelegateCall is a low-level opcode in the Ethereum Virtual Machine (EVM) that allows a smart contract to execute code from another contract. When a contract uses delegatecall, the code from the target contract runs within the context of the calling contract. This means the calling contract’s storage, balance, and msg.sender are utilized during execution. It is a powerful feature primarily employed for upgradable contracts and library patterns.