Add minor corrections

This commit is contained in:
Denton Liu 2016-08-11 14:34:36 -04:00
parent 058e5f0159
commit 0f1fb33d58

View File

@ -23,7 +23,7 @@ contract in order to become the "richest".
In the following contract, if you are usurped as the richest, In the following contract, if you are usurped as the richest,
you will recieve the funds of the person who has gone on to you will recieve the funds of the person who has gone on to
become the richest. become the new richest.
:: ::
@ -93,12 +93,13 @@ This is as opposed to the more intuitive sending pattern.
} }
Notice that, in this example, an attacker could trap the Notice that, in this example, an attacker could trap the
contract into an unusable state by causing the ``richest`` contract into an unusable state by causing ``richest`` to be
to be a contract that has a fallback function which consumes the address of a contract that has a fallback function
more than the 2300 gas stipend. That way, whenever ``send`` which consumes more than the 2300 gas stipend. That way,
is called to deliver funds to the "poisoned" contract, it whenever ``send`` is called to deliver funds to the
will cause execution to always fail because there is not "poisoned" contract, it will cause execution to always fail
enough gas to finish the execution of the fallback function. because there will not be enough gas to finish the execution
of the fallback function.
.. index:: access;restricting .. index:: access;restricting