NoobChain-Tutorial-Part-1 icon indicating copy to clipboard operation
NoobChain-Tutorial-Part-1 copied to clipboard

Made hash and previousHash variables private and added the correspond…

Open ericdsoto opened this issue 7 years ago • 1 comments

…ing getter methods. Improved general readability.

ericdsoto avatar Feb 20 '18 17:02 ericdsoto

Considering this change, though I wanted to keep the code here as similar to the article post as possible. Using private variables and getters are 100% the way to do it, However that would require larger code blocks in the article.

CryptoKass avatar Mar 29 '18 18:03 CryptoKass