diff options
author | Denton Liu <liu.denton+github@gmail.com> | 2016-06-30 02:12:07 +0800 |
---|---|---|
committer | Denton Liu <liu.denton+github@gmail.com> | 2016-07-05 23:55:09 +0800 |
commit | 70e5af11ef3093fb16f05f3e281620c9c341fb1e (patch) | |
tree | 67c26a25400a05a2161ad6ef80cd45ac9b44a3df /docs/control-structures.rst | |
parent | 2edbd0605c361da27292b102c6cd0b0f869b51f7 (diff) | |
download | dexon-solidity-70e5af11ef3093fb16f05f3e281620c9c341fb1e.tar dexon-solidity-70e5af11ef3093fb16f05f3e281620c9c341fb1e.tar.gz dexon-solidity-70e5af11ef3093fb16f05f3e281620c9c341fb1e.tar.bz2 dexon-solidity-70e5af11ef3093fb16f05f3e281620c9c341fb1e.tar.lz dexon-solidity-70e5af11ef3093fb16f05f3e281620c9c341fb1e.tar.xz dexon-solidity-70e5af11ef3093fb16f05f3e281620c9c341fb1e.tar.zst dexon-solidity-70e5af11ef3093fb16f05f3e281620c9c341fb1e.zip |
Correct grammar and language
Diffstat (limited to 'docs/control-structures.rst')
-rw-r--r-- | docs/control-structures.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst index 6d615caf..c2db523e 100644 --- a/docs/control-structures.rst +++ b/docs/control-structures.rst @@ -70,15 +70,15 @@ only (locally) sets the value and amount of gas sent with the function call and parentheses at the end perform the actual call. .. warning:: - Any interaction with another contract imposes a certain danger, especially + Any interaction with another contract imposes a potential danger, especially if the source code of the contract is not known in advance. The current - contract hands over control to the called contract and that might do - just about anything. Be prepared that it calls into other contracts of - your system and perhaps even back into the calling contract before your + contract hands over control to the called contract and that may potentially + do just about anything. Be prepared in case it calls into other contracts of + your system or even back into the calling contract before the first call returns. This means - that the called contract can change state variables of the calling contract - via its functions. Write your functions in a way that e.g. calls to - external functions happen after any changes to state variables in your contract, + that the called contract can change the state variables of the calling contract + via its functions. Write your functions in a way that such that, for example, calls to + external functions happen after any changes to state variables in your contract so your contract is not vulnerable to a recursive call exploit. Named Calls and Anonymous Function Parameters |