IRegisterDiamondCut
IRegisterDiamondCut
RegisterFacetCut
struct RegisterFacetCut {
struct IDiamondCut.FacetCut facetCut;
bytes20 id;
}
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 . in the event that the facetId is 0x0 then the facet is auto assigned a facetId
Parameters
| Name | Type | Description |
|---|---|---|
| _diamondCut | struct IRegisterDiamondCut.RegisterFacetCut[] | Contains the facet addresses and function selectors |
| _init | address | The address of the contract or facet to execute _calldata |
| _calldata | bytes | A function call, including function selector and arguments _calldata is executed with delegatecall on _init |