Skip to main content

RegisterDiamondCutFacet

RegisterDiamondCutFacet

diamondCutRegister

function diamondCutRegister(struct IRegisterDiamondCut.RegisterFacetCut[] _diamondCut, address _init, bytes _calldata) external

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

Parameters

NameTypeDescription
_diamondCutstruct IRegisterDiamondCut.RegisterFacetCut[]Contains the facet addresses and function selectors
_initaddressThe address of the contract or facet to execute _calldata
_calldatabytesA function call, including function selector and arguments _calldata is executed with delegatecall on _init