MulticallFacet
Last updated
Last updated
The purpose of this contract is to serve as a facet in a Diamond contract that allows for batch execution of multiple delegatecalls using the multicall
function.
The multicall
function enforces that the caller is the contract owner and then delegates the execution to the LibMulticall.multicall
function, which handles the execution of multiple delegatecalls to different facets.
Input:
an array of function selectors
an array of data that needs to be fed into the selectors