aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-10-23 21:16:38 +0800
committerGitHub <noreply@github.com>2018-10-23 21:16:38 +0800
commitf5f977eaf5b57c5fbed99692eed1b6e3b0f5527f (patch)
tree50920212c87ad5fc439e9f3b1ac7164c6ab70971
parenta2f5087d13274d6832669a39694ee5a3bf68f878 (diff)
parent0d4bdfbbb093bbd149bf27792644b014af84da0b (diff)
downloaddexon-solidity-f5f977eaf5b57c5fbed99692eed1b6e3b0f5527f.tar.gz
dexon-solidity-f5f977eaf5b57c5fbed99692eed1b6e3b0f5527f.tar.zst
dexon-solidity-f5f977eaf5b57c5fbed99692eed1b6e3b0f5527f.zip
Merge pull request #5288 from ethereum/docs-external-call-tx-faq
DOCS: Move FAQ item regarding contract to contract calls and tx
-rw-r--r--docs/control-structures.rst4
-rw-r--r--docs/frequently-asked-questions.rst8
2 files changed, 4 insertions, 8 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst
index c2d60df1..9da29d14 100644
--- a/docs/control-structures.rst
+++ b/docs/control-structures.rst
@@ -126,6 +126,10 @@ actual contract has not been created yet.
Functions of other contracts have to be called externally. For an external call,
all function arguments have to be copied to memory.
+.. note::
+ A function call from one contract to another does not create its own transaction,
+ it is a message call as part of the overall transaction.
+
When calling functions of other contracts, the amount of Wei sent with the call and
the gas can be specified with special options ``.value()`` and ``.gas()``, respectively::
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst
index 0f8b34f8..3e9a6aca 100644
--- a/docs/frequently-asked-questions.rst
+++ b/docs/frequently-asked-questions.rst
@@ -213,14 +213,6 @@ It gets added to the total balance of the contract, just like when you send ethe
You can only send ether along to a function that has the ``payable`` modifier,
otherwise an exception is thrown.
-Is it possible to get a tx receipt for a transaction executed contract-to-contract?
-===================================================================================
-
-No, a function call from one contract to another does not create its own transaction,
-you have to look in the overall transaction. This is also the reason why several
-block explorer do not show Ether sent between contracts correctly.
-
-
******************
Advanced Questions
******************