Skip to content

Commit

Permalink
Added Istanbul general and EIP-1108 specific test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerd77 committed Jun 5, 2019
1 parent 39bcf57 commit 2aefd91
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/api/istanbul/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const tape = require('tape')
const util = require('ethereumjs-util')
const VM = require('../../../dist/index').default

tape('General Istanbul VM tests', (t) => {
t.test('should accept istanbul harfork option', (st) => {
const vm = new VM({ hardfork: 'istanbul' })
st.ok(vm.stateManager)
st.deepEqual(vm.stateManager._trie.root, util.KECCAK256_RLP, 'it has default trie')
st.end()
})
})

0 comments on commit 2aefd91

Please sign in to comment.