import { prepareContractCall, sendTransaction } from "thirdweb";
const transaction = await prepareContractCall({
contract,
method: "function replaceExtension(((string name, string metadataURI, address implementation) metadata, (bytes4 functionSelector, string functionSignature)[] functions) _extension)",
params: [_extension]
});
const { transactionHash } = await sendTransaction({
transaction,
account
});