Skip to content

Commit

Permalink
evm: missing isFalsy change
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrocheleau committed Aug 31, 2022
1 parent 748f044 commit 653dda8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/evm/tests/precompiles/hardfork.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Chain, Common, Hardfork } from '@ethereumjs/common'
import { Address, isFalsy } from '@ethereumjs/util'
import { Address } from '@ethereumjs/util'
import * as tape from 'tape'

import { EVM } from '../../src'
Expand Down Expand Up @@ -36,7 +36,7 @@ tape('Precompiles: hardfork availability', (t) => {
// Check if ECPAIR is available in future hard forks.
const commonPetersburg = new Common({ chain: Chain.Mainnet, hardfork: Hardfork.Petersburg })
ECPAIRING = getActivePrecompiles(commonPetersburg).get(ECPAIR_AddressStr)!
if (isFalsy(ECPAIRING)) {
if (ECPAIRING === undefined) {
st.fail('ECPAIRING is not available in petersburg while it should be available')
} else {
st.pass('ECPAIRING available in petersburg')
Expand Down

0 comments on commit 653dda8

Please sign in to comment.