Skip to content

Commit 20beef9

Browse files
committed
Don't used the deprecated blockchain meta field
1 parent c1f4af6 commit 20beef9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/run-blockchain/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async function main() {
5050
const blockchainHead = await promisify(vm.blockchain.getHead.bind(vm.blockchain))()
5151

5252
console.log('--- Finished processing the BlockChain ---')
53-
console.log('New head:', '0x' + blockchain.meta.rawHead.toString('hex'))
53+
console.log('New head:', '0x' + blockchainHead.hash().toString('hex'))
5454
console.log('Expected:', testData.lastblockhash)
5555
}
5656

0 commit comments

Comments
 (0)