ethereumjs / ethereumjs-monorepo

Monorepo for the Ethereum VM TypeScript Implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`fromBlockData` constructor causes `uninitialized variable` error in browser

acolytec3 opened this issue · comments

The Block.fromBlockData static constructor causes a ReferenceError: Cannot access uninitialized variable. error in some vitest test runs in the browser. This can be observed if you run the eip1559block.spec.ts with npx vitest run test/eip1559block.spec.ts --config=vitest.config.browser.ts --browser.name=webkit --browser.provider=playwright --browser.headless. Note, you also need to comment out the line here so the tests will run.

We should research and fix this.

I believe this is fixed with the switch to vitest 1.x