Skip to content

Commit

Permalink
Fix EVM example
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerd77 committed Aug 13, 2024
1 parent 018064d commit 1b064f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/evm/examples/eips.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Chain, Common, Mainnet } from '@ethereumjs/common'
import { Common, Mainnet } from '@ethereumjs/common'

Check warning on line 1 in packages/evm/examples/eips.ts

View check run for this annotation

Codecov / codecov/patch

packages/evm/examples/eips.ts#L1

Added line #L1 was not covered by tests
import { createEVM } from '@ethereumjs/evm'

const main = async () => {
const common = new Common({ chain: Mainnet, eips: [3074] })
const common = new Common({ chain: Mainnet, eips: [7702] })

Check warning on line 5 in packages/evm/examples/eips.ts

View check run for this annotation

Codecov / codecov/patch

packages/evm/examples/eips.ts#L5

Added line #L5 was not covered by tests
const evm = await createEVM({ common })
console.log(`EIP 3074 is active - ${evm.common.isActivatedEIP(3074)}`)
console.log(`EIP 7702 is active - ${evm.common.isActivatedEIP(7702)}`)

Check warning on line 7 in packages/evm/examples/eips.ts

View check run for this annotation

Codecov / codecov/patch

packages/evm/examples/eips.ts#L7

Added line #L7 was not covered by tests
}

void main()

0 comments on commit 1b064f7

Please sign in to comment.