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

Commit

Permalink
fixes and hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch committed Sep 28, 2023
1 parent c9fc028 commit 1e2b669
Show file tree
Hide file tree
Showing 7 changed files with 13,260 additions and 14,082 deletions.
18 changes: 18 additions & 0 deletions packages/ethereum/ethereum/patches/@ethereumjs+evm+2.0.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/node_modules/@ethereumjs/evm/src/precompiles/types.ts b/node_modules/@ethereumjs/evm/src/precompiles/types.ts
index 05c44ff..80ae823 100644
--- a/node_modules/@ethereumjs/evm/src/precompiles/types.ts
+++ b/node_modules/@ethereumjs/evm/src/precompiles/types.ts
@@ -1,6 +1,5 @@
import type { EVMInterface, ExecResult } from '../types.js'
import type { Common } from '@ethereumjs/common'
-import type { debug } from 'debug'

export interface PrecompileFunc {
(input: PrecompileInput): Promise<ExecResult> | ExecResult
@@ -11,5 +10,5 @@ export interface PrecompileInput {
gasLimit: bigint
common: Common
_EVM: EVMInterface
- _debug?: debug.Debugger
+ _debug?: any
}
4 changes: 2 additions & 2 deletions packages/ethereum/ethereum/src/trie-db.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { BatchDBOp, DB } from "@ethereumjs/util";
import sub from "subleveldown";
import type { AbstractIteratorOptions } from "abstract-level";
import type { AbstractIteratorOptions } from "abstract-leveldown";
import { GanacheLevelUp } from "./database";

const ENCODING_OPTS = { keyEncoding: "binary", valueEncoding: "binary" };
Expand Down Expand Up @@ -79,7 +79,7 @@ export class TrieDB implements DB<string, string> {
return sub(this._db, prefix, options);
}

createReadStream(options?: AbstractIteratorOptions<Buffer, Buffer>) {
createReadStream(options?: AbstractIteratorOptions<Buffer>) {
return this._db.createReadStream(options);
}
}
Loading

0 comments on commit 1e2b669

Please sign in to comment.