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 authored and MicaiahReid committed Jan 5, 2023
1 parent 78d5aad commit 2baa643
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 {
TypedDatabaseTransaction
} from "@ganache/ethereum-transaction";
import { GanacheLevelUp } from "../database";
import { Ethereum } from "../api-types";

const LATEST_INDEX_KEY = BUFFER_ZERO;

Expand Down Expand Up @@ -277,7 +278,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 2baa643

Please sign in to comment.