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