Add TODO
This commit is contained in:
parent
6c7fbd8f35
commit
4fcf886808
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user