This commit is contained in:
Willian Mitsuda 2022-08-22 08:10:32 -03:00
parent 6c7fbd8f35
commit 4fcf886808
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -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]);