Use verifySignature instead
verifySignature
Checks if a contract wallet signature is valid.
import { checkContractWalletSignature } from "thirdweb/extensions/erc1271";const isValid = await checkContractWalletSignature({ contract: myContract, message: "hello world", signature: "0x...",});
function checkContractWalletSignature( options: CheckContractWalletSignatureOptions,): Promise<boolean>;
The options for the checkContractWalletSignature function.
let options: { contract: ThirdwebContract; message: SignableMessage; signature: string;};
let returnType: Promise<boolean>;
A promise that resolves with a boolean indicating if the signature is valid.