Skip to content

Commit

Permalink
Develop Rebase Fixes (2022-03-05)
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerd77 authored and g11tech committed Jun 2, 2022
1 parent a7e0b0c commit 5e09ca5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/vm/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ export default class VM extends AsyncEventEmitter {
Hardfork.Berlin,
Hardfork.London,
Hardfork.ArrowGlacier,
Hardfork.PreMerge,
Hardfork.Merge,
]
if (!supportedHardforks.includes(this._common.hardfork() as Hardfork)) {
throw new Error(
Expand Down
2 changes: 1 addition & 1 deletion packages/vm/tests/api/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ tape('VM -> basic instantiation / boolean switches', (t) => {

tape('VM -> supportedHardforks', (t) => {
t.test('should throw when common is set to an unsupported hardfork', async (st) => {
const common = new Common({ chain: Chain.Mainnet, hardfork: Hardfork.Merge })
const common = new Common({ chain: Chain.Mainnet, hardfork: Hardfork.Shanghai })
try {
await VM.create({ common })
st.fail('should have failed for unsupported hardfork')
Expand Down

0 comments on commit 5e09ca5

Please sign in to comment.