import { ethers } from "ethers"; export const emergencyWithdraw = async ( reliquaryContract: ethers.Contract, relicId: number ) => { try { const tx = await reliquaryContract.emerengcyWithdraw(relicId); await tx.wait(); } catch (error) { return error; } };