From b5accbbb8c2cbfb67a38c57292308298b0b4e62b Mon Sep 17 00:00:00 2001 From: Vadzim Mahilny Date: Wed, 20 Sep 2023 16:54:38 +0100 Subject: [PATCH] Removed ethers --- package.json | 1 - src/renderer/hooks/useTaskData.ts | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/package.json b/package.json index fcdef25..0e0f50e 100644 --- a/package.json +++ b/package.json @@ -108,7 +108,6 @@ "electron-log": "^4.4.8", "electron-root-path": "^1.1.0", "electron-updater": "^5.3.0", - "ethers": "^6.6.7", "genson-js": "^0.0.8", "grommet": "^2.32.2", "grommet-icons": "^4.11.0", diff --git a/src/renderer/hooks/useTaskData.ts b/src/renderer/hooks/useTaskData.ts index 02a226f..c6cd43d 100644 --- a/src/renderer/hooks/useTaskData.ts +++ b/src/renderer/hooks/useTaskData.ts @@ -3,10 +3,7 @@ import { TaskType } from 'renderer/components/types'; import { FLOCK_TASK_ABI } from 'renderer/contracts/flockTask'; import { useContractRead } from 'wagmi'; import { readContract } from '@wagmi/core'; -import { formatUnits } from 'ethers'; -import { create as ipfsHttpClient } from 'ipfs-http-client'; - -const ipfsClient = ipfsHttpClient({ url: 'https://ipfs.flock.io/api/v0' }); +import { formatUnits } from 'viem'; export const useTaskData = ({ task,