Skip to content

Commit

Permalink
evm: add missing evm change
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrocheleau committed Aug 31, 2022
1 parent 815b379 commit 748f044
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/evm/tests/runCode.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { isFalsy, isTruthy } from '@ethereumjs/util'
import * as tape from 'tape'

import { EVM } from '../src'
Expand Down Expand Up @@ -46,13 +45,13 @@ tape('VM.runCode: initial program counter', async (t) => {
err = e
}

if (isTruthy(testData.error)) {
err = isTruthy(err) ? err.message : 'no error thrown'
if (testData.error !== undefined) {
err = err?.message ?? 'no error thrown'
t.equal(err, testData.error, 'error message should match')
err = false
}

t.assert(isFalsy(err))
t.assert(err === false || err === undefined)
}
})

Expand Down

0 comments on commit 748f044

Please sign in to comment.