LiFiDiamond
ScrollDiamond Cut
(diamondCut)
nonpayable
Use this function in your app
import { prepareContractCall, sendTransaction } from "thirdweb";
const transaction = await prepareContractCall({ contract, method: "function diamondCut((address facetAddress, uint8 action, bytes4[] functionSelectors)[] _diamondCut, address _init, bytes _calldata)", params: [_diamondCut, _init, _calldata]});const { transactionHash } = await sendTransaction({ transaction, account});