Great article! I've been wanting an good intro into block chain and this was perfect. However, when I ran the index.js file, blockchain.getAllBlocks() returned undefined. I got it to work by updating that function to const getAllBlocks = () => blocks.
Great article! I've been wanting an good intro into block chain and this was perfect. However, when I ran the index.js file,
blockchain.getAllBlocks()
returnedundefined
. I got it to work by updating that function toconst getAllBlocks = () => blocks
.You are right, I updated the code in the article. Thanks for the catch!