DiamondCutFacet

Git Source

Inherits: IDiamondCut, DiamondCutBase, Facet

Functions

DiamondCut_init

function DiamondCut_init() external onlyInitializing;

diamondCut

Add/replace/remove any number of functions and optionally execute a function with delegatecall.

function diamondCut(IDiamond.FacetCut[] memory facetCuts, address init, bytes memory initData)
    external
    onlyDiamondOwner
    reinitializer(_getInitializedVersion() + 1);

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?