DelegateContext

Git Source

In a delegate call, address(this) will return diamond's address.

State Variables

_self

Stores the contract's address at the moment of deployment. Useful for detecting if a contract is being delegated to.

address private immutable _self = address(this);

Functions

onlyDelegateCall

modifier onlyDelegateCall();

noDelegateCall

modifier noDelegateCall();

Errors

DelegateNotAllowed

error DelegateNotAllowed();

OnlyDelegate

error OnlyDelegate();

Last updated

Was this helpful?