Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottyPoi committed Jul 19, 2024
1 parent fbf025a commit 783643a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vm/examples/helpers/account-utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { VM } from '@ethereumjs/vm'
import { Account, Address } from '@ethereumjs/util'
import { Account, accountFromAccountData, Address } from '@ethereumjs/util'

export const keyPair = {
secretKey: '0x3cd7232cd6f3fc66a57a6bedc1a8ed6c228fff0a327e169c2bcc5e869ed49511',
Expand Down
9 changes: 8 additions & 1 deletion packages/vm/examples/run-blockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
// 4. Puts the blocks from ../utils/blockchain-mock-data "blocks" attribute into the Blockchain
// 5. Runs the Blockchain on the VM.

import { Account, Address, toBytes, setLengthLeft, bytesToHex, hexToBytes } from '@ethereumjs/util'
import {
Address,
toBytes,
setLengthLeft,
bytesToHex,
hexToBytes,
accountFromAccountData,
} from '@ethereumjs/util'
import {
Block,
createBlockFromBlockData,
Expand Down

0 comments on commit 783643a

Please sign in to comment.