aboutsummaryrefslogtreecommitdiffstats
path: root/docs/frequently-asked-questions.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-10-16 05:34:35 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-10-19 21:02:50 +0800
commit1b3713742f10a4749e6f15b9344d8ffaef19790e (patch)
tree97e978d750a2305d2cb8d4086c78c434a2af29fa /docs/frequently-asked-questions.rst
parentf0f2d5a612e0f646c7d6cec0092d2713ba9d686b (diff)
downloaddexon-solidity-1b3713742f10a4749e6f15b9344d8ffaef19790e.tar
dexon-solidity-1b3713742f10a4749e6f15b9344d8ffaef19790e.tar.gz
dexon-solidity-1b3713742f10a4749e6f15b9344d8ffaef19790e.tar.bz2
dexon-solidity-1b3713742f10a4749e6f15b9344d8ffaef19790e.tar.lz
dexon-solidity-1b3713742f10a4749e6f15b9344d8ffaef19790e.tar.xz
dexon-solidity-1b3713742f10a4749e6f15b9344d8ffaef19790e.tar.zst
dexon-solidity-1b3713742f10a4749e6f15b9344d8ffaef19790e.zip
Document constant functions
Diffstat (limited to 'docs/frequently-asked-questions.rst')
-rw-r--r--docs/frequently-asked-questions.rst14
1 files changed, 0 insertions, 14 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst
index e0bdcfb4..6d47e4a7 100644
--- a/docs/frequently-asked-questions.rst
+++ b/docs/frequently-asked-questions.rst
@@ -97,20 +97,6 @@ Its type is the type of the contract. Since any contract type basically inherits
``address`` type, ``this`` is always convertible to ``address`` and in this case contains
its own address.
-What is the difference between a function marked ``constant`` and one that is not?
-==================================================================================
-
-``constant`` functions can perform some action and return a value, but cannot
-change state (this is not yet enforced by the compiler). In other words, a
-constant function cannot save or update any variables within the contract or wider
-blockchain. These functions are called using ``c.someFunction(...)`` from
-geth or any other web3.js environment.
-
-"non-constant" functions (those lacking the ``constant`` specifier) must be called
-with ``c.someMethod.sendTransaction({from:eth.accounts[x], gas: 1000000});``
-That is, because they can change state, they have to have a gas
-payment sent along to get the work done.
-
Get a contract to return its funds to you (not using ``selfdestruct(...)``).
============================================================================