Small clarifications around the 2300 gas stipend from transfer and send

This commit is contained in:
Chris Ward
2018-08-01 16:21:29 +01:00
committed by Alex Beregszaszi
parent 9d0e927f85
commit 0ad646635f
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ Notice that, in this example, an attacker could trap the
contract into an unusable state by causing ``richest`` to be
the address of a contract that has a fallback function
which fails (e.g. by using ``revert()`` or by just
consuming more than the 2300 gas stipend). That way,
consuming more than the 2300 gas stipend transferred to them). That way,
whenever ``transfer`` is called to deliver funds to the
"poisoned" contract, it will fail and thus also ``becomeRichest``
will fail, with the contract being stuck forever.