import { test } from 'vitest' import { publicClient } from '~test/src/utils.js' import { call } from './call.js' test('legacy', () => { call(publicClient, { gasPrice: 0n, }) // @ts-expect-error call(publicClient, { gasPrice: 0n, maxFeePerGas: 0n, maxPriorityFeePerGas: 0n, }) // @ts-expect-error call(publicClient, { gasPrice: 0n, maxFeePerGas: 0n, maxPriorityFeePerGas: 0n, type: 'legacy', }) // @ts-expect-error call(publicClient, { maxFeePerGas: 0n, maxPriorityFeePerGas: 0n, type: 'legacy', }) }) test('eip1559', () => { call(publicClient, { maxFeePerGas: 0n, maxPriorityFeePerGas: 0n, }) // @ts-expect-error call(publicClient, { gasPrice: 0n, maxFeePerGas: 0n, maxPriorityFeePerGas: 0n, }) // @ts-expect-error call(publicClient, { gasPrice: 0n, maxFeePerGas: 0n, maxPriorityFeePerGas: 0n, type: 'eip1559', }) // @ts-expect-error call(publicClient, { gasPrice: 0n, type: 'eip1559', }) }) test('eip2930', () => { call(publicClient, { accessList: [], gasPrice: 0n, }) // @ts-expect-error call(publicClient, { accessList: [], gasPrice: 0n, maxFeePerGas: 0n, maxPriorityFeePerGas: 0n, }) // @ts-expect-error call(publicClient, { accessList: [], gasPrice: 0n, maxFeePerGas: 0n, maxPriorityFeePerGas: 0n, type: 'eip2930', }) // @ts-expect-error call(publicClient, { accessList: [], maxFeePerGas: 0n, maxPriorityFeePerGas: 0n, type: 'eip2930', }) })