import { RenderResult } from '@testing-library/react-hooks' import { Contract } from 'ethers' import { CallResult } from '../../helpers' export type HookResult = { [key: string]: CallResult } export const getResultPropery = (result: RenderResult, property: keyof T) => { return result.current?.[property]?.value[0] }