Skip to content
This repository was archived by the owner on Dec 10, 2020. It is now read-only.

Commit ab5be31

Browse files
committed
Use Account from ethereumjs-util in util/parse, remove ethereumjs-account
1 parent d24af2d commit ab5be31

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/util/parse.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Account from 'ethereumjs-account'
21
import { BlockHeader } from '@ethereumjs/block'
32
const Trie = require('merkle-patricia-tree/secure')
43
import * as util from 'ethereumjs-util'
@@ -67,7 +66,7 @@ async function parseGethState(alloc: any) {
6766
const promises = []
6867
for (const [key, value] of Object.entries(alloc)) {
6968
const address = toBuffer(key)
70-
const account = new Account()
69+
const account = new util.Account()
7170
if ((value as any).balance) {
7271
// TODO: convert to buffer w/ util.toBuffer()?
7372
// @ts-ignore: account.balance is type Buffer, not BN

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@
5959
"@ethereumjs/blockchain": "^5.0.0-beta.1",
6060
"@ethereumjs/common": "^2.0.0-beta.1",
6161
"chalk": "^2.4.1",
62-
"ethereumjs-account": "^3.0.0",
6362
"ethereumjs-devp2p": "^3.0.3",
64-
"ethereumjs-util": "^7.0.2",
63+
"ethereumjs-util": "^7.0.7",
6564
"fs-extra": "^7.0.1",
6665
"jayson": "^2.0.6",
6766
"level": "^6.0.1",

0 commit comments

Comments
 (0)