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

Commit

Permalink
fix: use Etereum.Block type
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Adjimann committed Oct 7, 2022
1 parent 510b74b commit 6648be8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
TransactionFactory,
TypedDatabaseTransaction
} from "@ganache/ethereum-transaction";
import { Ethereum } from "../api-types";

const LATEST_INDEX_KEY = BUFFER_ZERO;

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

0 comments on commit 6648be8

Please sign in to comment.