Skip to main content

Reference

Interfaces, signatures, parameters, and generated references.

Lookup friendly
TOC available

NoDelegateCall

Base contract that provides a modifier for preventing delegatecall to methods in a child contract

State Variables​

original​

The original address of this contract

address private immutable original;

Functions​

constructor​

constructor();

checkNotDelegateCall​

Private method is used instead of inlining into modifier because modifiers are copied into each method, and the use of immutable means the address bytes are copied in every place the modifier is used.

function checkNotDelegateCall() private view;

noDelegateCall​

Prevents delegatecall into the modified method

modifier noDelegateCall();

Errors​

DelegateCallNotAllowed​

error DelegateCallNotAllowed();