mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Minor edits
This commit is contained in:
parent
30908415bf
commit
6de9fc710e
@ -93,7 +93,7 @@ Notice that, in this example, an attacker could trap the
|
|||||||
contract into an unusable state by causing ``richest`` to be
|
contract into an unusable state by causing ``richest`` to be
|
||||||
the address of a contract that has a fallback function
|
the address of a contract that has a fallback function
|
||||||
which fails (e.g. by using ``revert()`` or by just
|
which fails (e.g. by using ``revert()`` or by just
|
||||||
conssuming more than the 2300 gas stipend). That way,
|
consuming more than the 2300 gas stipend). That way,
|
||||||
whenever ``transfer`` is called to deliver funds to the
|
whenever ``transfer`` is called to deliver funds to the
|
||||||
"poisoned" contract, it will fail and thus also ``becomeRichest``
|
"poisoned" contract, it will fail and thus also ``becomeRichest``
|
||||||
will fail, with the contract being stuck forever.
|
will fail, with the contract being stuck forever.
|
||||||
@ -121,7 +121,7 @@ unless you declare make your state variables ``public``.
|
|||||||
|
|
||||||
Furthermore, you can restrict who can make modifications
|
Furthermore, you can restrict who can make modifications
|
||||||
to your contract's state or call your contract's
|
to your contract's state or call your contract's
|
||||||
functions and this is what this page is about.
|
functions and this is what this section is about.
|
||||||
|
|
||||||
.. index:: function;modifier
|
.. index:: function;modifier
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user