From 8f59ec791ebde3d09d73af0db40e26cf98a843e3 Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Thu, 6 Oct 2016 23:13:55 +0200 Subject: English clarifications mostly based on suggestions by @axic --- docs/miscellaneous.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/miscellaneous.rst b/docs/miscellaneous.rst index 16033837..f72c1195 100644 --- a/docs/miscellaneous.rst +++ b/docs/miscellaneous.rst @@ -60,13 +60,13 @@ The position of ``data[4][9].b`` is at ``keccak256(uint256(9) . keccak256(uint25 When Solidity Throws ******************** -Solidity contract throws an exception for unhealthy operations such as +A Solidity contract throws an exception for unhealthy operations such as - division by zero - modulo by zero -- out-of-bounds access on a fixed bytes value -- out-of-bounds access on an array -- a positive value seen by a function without ``payable`` mofifier except when the function is a library function +- out-of-bounds index access on an array +- out-of-bounds index access on a fixed length bytes +- a Ether transfer seen by a function without ``payable`` mofifier except when the function is a library function - execution of ``throw;`` - a contract invocation with no matching interface function or a fallback function - an external call in an exceptional state, for instance, out of gas, invalid jump destination, and so on (however, low level ``call``, ``send``, ``delegatecall`` and ``callcode`` just return zero for such cases). -- cgit