aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-09-06 18:19:46 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-09-06 18:19:46 +0800
commita6c35c08f512a30e776e8a57191c1cc8e7b243a0 (patch)
tree8255570f6687c61af885afd3490f2f75016652e8
parente2b787cdd0717bf074cc03634d580f7713568792 (diff)
downloaddexon-solidity-a6c35c08f512a30e776e8a57191c1cc8e7b243a0.tar
dexon-solidity-a6c35c08f512a30e776e8a57191c1cc8e7b243a0.tar.gz
dexon-solidity-a6c35c08f512a30e776e8a57191c1cc8e7b243a0.tar.bz2
dexon-solidity-a6c35c08f512a30e776e8a57191c1cc8e7b243a0.tar.lz
dexon-solidity-a6c35c08f512a30e776e8a57191c1cc8e7b243a0.tar.xz
dexon-solidity-a6c35c08f512a30e776e8a57191c1cc8e7b243a0.tar.zst
dexon-solidity-a6c35c08f512a30e776e8a57191c1cc8e7b243a0.zip
Fix the return value of call in inline assembly
-rw-r--r--docs/control-structures.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/control-structures.rst b/docs/control-structures.rst
index 0e430b6b..e6dfe4f6 100644
--- a/docs/control-structures.rst
+++ b/docs/control-structures.rst
@@ -523,7 +523,8 @@ The opcodes ``pushi`` and ``jumpdest`` cannot be used directly.
+-------------------------+------+-----------------------------------------------------------------+
| call(g, a, v, in, | | call contract at address a with input mem[in..(in+insize)) |
| insize, out, outsize) | | providing g gas and v wei and output area |
-| | | mem[out..(out+outsize)) returning 1 on error (out of gas) |
+| | | mem[out..(out+outsize)) returning 0 on error (eg. out of gas) |
+| | | and 1 on success |
+-------------------------+------+-----------------------------------------------------------------+
| callcode(g, a, v, in, | | identical to `call` but only use the code from a and stay |
| insize, out, outsize) | | in the context of the current contract otherwise |