aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-05-28 22:13:25 +0800
committerGitHub <noreply@github.com>2018-05-28 22:13:25 +0800
commitd2fb7a2a44d7c97d1eda689b7e09a3cd740bb9b2 (patch)
tree75d65d497a40c2a9a9e9eb637e1f3b3c92aa59b0 /docs
parentc71e5f8e94373fc4330efc1a1e4108b3f7dc7905 (diff)
parent899bd5f39a6d078fb1acc43ec18d547f16d63532 (diff)
downloaddexon-solidity-d2fb7a2a44d7c97d1eda689b7e09a3cd740bb9b2.tar.gz
dexon-solidity-d2fb7a2a44d7c97d1eda689b7e09a3cd740bb9b2.tar.zst
dexon-solidity-d2fb7a2a44d7c97d1eda689b7e09a3cd740bb9b2.zip
Merge pull request #4195 from jvmaia/patch-2
clarify warnings in contracts.rst
Diffstat (limited to 'docs')
-rw-r--r--docs/contracts.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/contracts.rst b/docs/contracts.rst
index 00ef3fc6..7f1899fa 100644
--- a/docs/contracts.rst
+++ b/docs/contracts.rst
@@ -526,9 +526,14 @@ In addition to the list of state modifying statements explained above, the follo
It is not possible to prevent functions from reading the state at the level
of the EVM, it is only possible to prevent them from writing to the state
(i.e. only ``view`` can be enforced at the EVM level, ``pure`` can not).
+ It is a non-circumventable runtime checks done by the EVM.
.. warning::
Before version 0.4.17 the compiler didn't enforce that ``pure`` is not reading the state.
+ It is a compile-time type check, which can be circumvented doing invalid explicit conversions
+ between contract types, because the compiler can verify that the type of the contract does
+ not do state-changing operations, but it cannot check that the contract that will be called
+ at runtime is actually of that type.
.. index:: ! fallback function, function;fallback