Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/ethereum-tests
Submodule ethereum-tests updated 613 files
40 changes: 0 additions & 40 deletions packages/evm/test/eips/eip-4200.spec.ts

This file was deleted.

8 changes: 5 additions & 3 deletions packages/evm/test/eips/eip-5450.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { hexToBytes } from '@ethereumjs/util'
import { assert, describe, it } from 'vitest'

import { default as testData } from '../../../ethereum-tests/EOFTests/EIP5450/validInvalid.json'
import { default as testData } from '../../../ethereum-tests/EOFTests/EIP5450/validInvalid.json' assert {
type: 'json',
}
import { validateEOF } from '../../src/eof/container.js'
import { createEVM } from '../../src/index.js'

Expand All @@ -23,8 +25,8 @@ describe('EIP 5450 tests', async () => {
const input = testData.validInvalid.vectors[key]
const code = hexToBytes(input.code)

const expected = input.results.Prague.result
const _exception = input.results.Prague.exception
const expected = input.results.Osaka.result
const _exception = input.results.Osaka.exception

if (expected === true) {
validateEOF(code, evm)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { getCommon } from './eof-utils.js'

// Rename this test dir to the location of EOF header tests
// To test, use `npx vitest run ./scripts/eof-header-validation.spec.ts
const testDir = path.resolve('../ethereum-tests/EOFStuff/fixtures/eof_tests')
const testDir = path.resolve('../ethereum-tests/EOFTests')

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right this file should be disabled for browser tests


async function getEVM() {
const common = getCommon()
Expand Down
1 change: 1 addition & 0 deletions packages/evm/vitest.config.browser.mts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default mergeConfig(
...configDefaults.exclude,
// readDirSync method not provided fs mock for vite
'test/precompiles/eip-2537-bls.spec.ts',
'test/eips/eof-header-validation.spec.ts',
],
},
}),
Expand Down