LiFiDiamond

OP
etherscanblockscout

Diamond Cut

(diamondCut)

nonpayable


_diamondCut

Input should be passed in JSON format - Ex: [{ "facetAddress": "0x...", "action": "0", "functionSelectors": ["0"] }]

_init

_calldata


Sign In

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
});