import { ethers } from 'ethers' import { execute, FallbackableOverrides, MutationOption, } from '../../common/utils/execute' import type { TransactionResponse } from 'ethers' export type CreateForceAttachCaller = ( contract: ethers.Contract, ) => ( policy: string, overrides?: FallbackableOverrides, ) => Promise export const createForceAttachCaller: CreateForceAttachCaller = (contract: ethers.Contract) => async (policy: string, overrides?: FallbackableOverrides) => execute({ contract, method: 'forceAttach', mutation: true, args: [policy], overrides, })