Helpful?
NoDelegateCall
Git Source - Generated with forge doc
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();