Errata

Mastering Ethereum

Errata for Mastering Ethereum

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Mobi Page location 1022
Example 2-1 Faucet.sol

This example as printed raises one warning and one error. It should read

pragma solidity ^0.5.1;

contract Faucet {
function withdraw(uint withdraw_amount) public {
require(
withdraw_amount < 100000000000000000,
"please request no more than 100000000000000000");
msg.sender.transfer(withdraw_amount);
}
function () external payable {}
}

The major difference is that the fallback function must be marked as `external`, not `public`, which throws an error. The pragma statement avoids a warning.

Zev Averbach  Dec 11, 2018 
Printed Page P 6, P 33
It is a general question not related to specific paragraph

I am an LLM student at Queen Mary University in the UK, and I am writing a dissertation about protecting personal data rights in DLs and Blockchains.

My first question is: - What type of blockchain is being provided by the blockchain service enterprises? In the book, it is mentioned that the Bitcoin blockchain is used for tracing cryptocurrency transactions and the Ethereum is commonly known to be used for smart contracts.

Q2: Can the hashed transactions be rehashed? And how ?

Abbdullah Dashti  Feb 24, 2023 
2nd Chapter
section *Getting Some Test Ether*

it has been mentioned to connect to the Ropsten Test Network, but
recently Rinkeby, Kovan and Ropsten Test Network have been deprecated (see announcements on Ethereum.org

Because of this, MetaMask also removed these networks from their default
list. It is recommended to use Goerli or Sepolia instead of any of these
deprecated testnets.

Anonymous  Nov 28, 2022 
Printed Page 185
first paragraph, right under the smart contract code 'EtherGame'

The smart contract 'EtherGame' starting on page 184 contains a variable called 'depositedWei'. However, the text of the first paragraph on page 185 mentions the variable 'depositedEther' in the following sentence:

Here, we have created a new variable, depositedEther, which keeps track of the known ether deposited, and it is this variable that we use for our tests.

I believe this should be depositedWei instead of depositedEther.

MichaĆ«l Verdonck  May 09, 2019