import type { AbiHolder } from "../../../abi-types.js"; import type { Abi, ContractErrorName, ReadContractReturnType, WriteContractReturnType, } from "viem"; import { handleRevertWithCustomError } from "./handle-revert-with-custom-error.js"; export async function revertWithCustomError>( contractFn: Promise, contract: TContract, customErrorName: ContractErrorName, ): Promise { await handleRevertWithCustomError(contractFn, contract, customErrorName); }