import { isERC20 } from "thirdweb/extensions/erc20";
import { resolveContractAbi } from "thirdweb/contract";
const abi = await resolveContractAbi(contract);
const selectors = abi
.filter((f) => f.type === "function")
.map((f) => toFunctionSelector(f));
const result = await isERC20(selectors);