Skip to content

Commit

Permalink
blockchain: update docs
Browse files Browse the repository at this point in the history
blockchain: import bn from ethereumjs-util

vm: await initPromise of blockchain to ensure blockchain is initialized
  • Loading branch information
jochem-brouwer committed Nov 8, 2020
1 parent c3d4d6b commit 12f0dcb
Show file tree
Hide file tree
Showing 4 changed files with 169 additions and 107 deletions.
2 changes: 1 addition & 1 deletion packages/blockchain/src/db/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import BN = require('bn.js')
import { BN } from 'ethereumjs-util'

// Geth compatible DB keys

Expand Down
3 changes: 1 addition & 2 deletions packages/blockchain/src/db/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { DBOp, DBTarget } from './operation'
import BN from 'bn.js'
import { rlp } from 'ethereumjs-util'
import { BN, rlp } from 'ethereumjs-util'
import { Block, BlockHeader } from '@ethereumjs/block'
import { bufBE8 } from './constants'

Expand Down
Loading

0 comments on commit 12f0dcb

Please sign in to comment.