isUninstallModuleSupported

Checks if the uninstallModule method is supported by the given contract.

Example

import { isUninstallModuleSupported } from "thirdweb/extensions/modular";
const supported = await isUninstallModuleSupported(contract);
function isUninstallModuleSupported(
contract: Readonly<ContractOptions<any>>,
): Promise<boolean>;

Parameters

The ThirdwebContract.

Type

let contract: Readonly<ContractOptions<any>>;

Returns

let returnType: Promise<boolean>;

A promise that resolves to a boolean indicating if the uninstallModule method is supported.