IDiamondCut
Inherits: IDiamondCutBase
Interface of the DiamondCut facet. See EIP-2535.
Functions
diamondCut
Add/replace/remove any number of functions and optionally execute a function with delegatecall.
function diamondCut(IDiamond.FacetCut[] calldata facetCuts, address init, bytes calldata initData) external;
Parameters
Name
Type
Description
facetCuts
IDiamond.FacetCut[]
Contains the facet addresses and function selectors.
init
address
The address of the contract or facet to execute initData.
initData
bytes
A function call, including function selector and arguments executed with delegatecall on address init.
Last updated
Was this helpful?