Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 6648be8

Browse files
author
Andres Adjimann
committed
fix: use Etereum.Block type
1 parent 510b74b commit 6648be8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/chains/ethereum/ethereum/src/data-managers/block-manager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
TransactionFactory,
1616
TypedDatabaseTransaction
1717
} from "@ganache/ethereum-transaction";
18+
import { Ethereum } from "../api-types";
1819

1920
const LATEST_INDEX_KEY = BUFFER_ZERO;
2021

@@ -275,7 +276,7 @@ export default class BlockManager extends Manager<Block> {
275276
async getEarliest() {
276277
const fallback = this.#blockchain.fallback;
277278
if (fallback) {
278-
const json = await fallback.request<any>(
279+
const json = await fallback.request<Ethereum.Block<true, "public">>(
279280
"eth_getBlockByNumber",
280281
[Tag.earliest, true],
281282
// TODO: re-enable cache once this is fixed

0 commit comments

Comments
 (0)