From 4fcf886808a53aa48b8f1d9c45c47259cd56dcf4 Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Mon, 22 Aug 2022 08:10:32 -0300 Subject: [PATCH] Add TODO --- src/useLatestBlock.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/useLatestBlock.ts b/src/useLatestBlock.ts index a38a4ef..dc77e69 100644 --- a/src/useLatestBlock.ts +++ b/src/useLatestBlock.ts @@ -10,6 +10,7 @@ export const useLatestBlock = (provider?: JsonRpcProvider) => { return; } + // TODO: remove duplicated code const readLatestBlock = async () => { const blockNum = await provider.getBlockNumber(); const _raw = await provider.send("erigon_getHeaderByNumber", [blockNum]);